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

Function _stop_current_profiler

imperative/python/megengine/utils/profiler.py:326–332  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

324
325
326def _stop_current_profiler():
327 global _running_profiler
328 if _running_profiler is not None:
329 _running_profiler.stop()
330 living_profilers = [*_living_profilers]
331 for profiler in living_profilers:
332 profiler.dump()
333
334
335_atexit(_stop_current_profiler)

Callers

nothing calls this directly

Calls 2

stopMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected