MCPcopy
hub / github.com/AUTOMATIC1111/stable-diffusion-webui / record

Method record

modules/timer.py:49–57  ·  view source on GitHub ↗
(self, category, extra_time=0, disable_log=False)

Source from the content-addressed store, hash-verified

47 self.records[category] += amount
48
49 def record(self, category, extra_time=0, disable_log=False):
50 e = self.elapsed()
51
52 self.add_time_to_record(self.base_category + category, e + extra_time)
53
54 self.total += e + extra_time
55
56 if self.print_log and not disable_log:
57 print(f"{' ' * self.subcategory_level}{category}: done in {e + extra_time:.3f}s")
58
59 def subcategory(self, name):
60 self.elapsed()

Callers 15

handlerMethod · 0.95
load_modelFunction · 0.95
reload_model_weightsFunction · 0.95
webui.pyFile · 0.80
webuiFunction · 0.80
mainFunction · 0.80
prepare_environmentFunction · 0.80
load_scriptsFunction · 0.80
load_model_weightsFunction · 0.80

Calls 2

elapsedMethod · 0.95
add_time_to_recordMethod · 0.95

Tested by

no test coverage detected