MCPcopy Index your code
hub / github.com/vladmandic/sdnext / record

Method record

modules/timer.py:35–42  ·  view source on GitHub ↗
(self, category=None, extra_time=0, reset=True)

Source from the content-addressed store, hash-verified

33 self.add(name, elapsed)
34
35 def record(self, category=None, extra_time=0, reset=True):
36 e = self.elapsed(reset)
37 if category is None:
38 category = sys._getframe(1).f_code.co_name # pylint: disable=protected-access
39 if category not in self.records:
40 self.records[category] = 0
41 self.records[category] += e + extra_time
42 self.total += e + extra_time
43
44 def summary(self, min_time=default_min_time, max_time=-1, total=True):
45 if self.profile:

Callers 15

load_scriptsFunction · 0.95
webui.pyFile · 0.45
initializeFunction · 0.45
load_modelFunction · 0.45
start_commonFunction · 0.45
start_uiFunction · 0.45
create_uiFunction · 0.45
loader.pyFile · 0.45
create_uiFunction · 0.45
create_quicksettingsFunction · 0.45
create_uiFunction · 0.45
process_imagesFunction · 0.45

Calls 1

elapsedMethod · 0.95

Tested by

no test coverage detected