MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / start

Method start

imperative/python/megengine/utils/profiler.py:177–185  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

175 return list(self._formats)
176
177 def start(self):
178 global _running_profiler
179
180 assert _running_profiler is None
181 _running_profiler = self
182 self._pid = os.getpid()
183 start_profile(self._options)
184 self._origin_enable_bt = set_python_backtrace_enabled(self.with_backtrace)
185 return self
186
187 def stop(self):
188 global _running_profiler

Callers 13

__enter__Method · 0.95
__init__Method · 0.45
__call__Method · 0.45
__init__Method · 0.45
test_dtr_resnet1202Function · 0.45
test_backtraceFunction · 0.45
test_init_process_groupFunction · 0.45
test_group_barrierFunction · 0.45
test_synchronizedFunction · 0.45
test_imperative_exitFunction · 0.45

Calls 1