MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / summarize

Method summarize

python/pymesh/timethis.py:54–70  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

52
53 @classmethod
54 def summarize(cls):
55 if len(cls.__hist) == 0: return
56 separator = "-"*67
57 format_string = "| {0:40.39} | {1:12.7} | {2:5} |"
58 print(separator)
59 print(format_string.format("Label", "Time", "Count"))
60 print(separator)
61 for f_name in cls.__hist.keys():
62 print(format_string.format(
63 f_name,
64 cls.__hist[f_name],
65 cls.__count[f_name]))
66 print(separator)
67
68 if len(cls.__tiks) > 0:
69 print("==== orphans tiks ====")
70 print(cls.__tiks.keys())
71
72 @property
73 def tiks(self):

Callers 5

timethis.pyFile · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected