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

Method stop

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

Source from the content-addressed store, hash-verified

185 return self
186
187 def stop(self):
188 global _running_profiler
189
190 assert _running_profiler is self
191 _running_profiler = None
192 full_sync()
193 self._dump_callback = stop_profile()
194 self._pid = os.getpid()
195 _living_profilers.add(self)
196 set_python_backtrace_enabled(self._origin_enable_bt)
197
198 def step(self):
199 global _running_profiler

Callers 2

__exit__Method · 0.95
_stop_current_profilerFunction · 0.45

Calls 2

addMethod · 0.45

Tested by

no test coverage detected