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

Method __exit__

imperative/python/megengine/utils/profiler.py:237–241  ·  view source on GitHub ↗
(self, val, tp, trace)

Source from the content-addressed store, hash-verified

235 self._patcher.__enter__()
236
237 def __exit__(self, val, tp, trace):
238 self.stop()
239 if self._with_scopes and self._api_patcher is not None:
240 self._api_patcher.__exit__(val, tp, trace)
241 self._api_patcher = None
242
243 def __call__(self, func):
244 func = super().__call__(func)

Callers

nothing calls this directly

Calls 1

stopMethod · 0.95

Tested by

no test coverage detected