Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ __enter__
Method
__enter__
imperative/python/megengine/utils/profiler.py:232–235 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
230
return
os.path.join(path,
"{}.{}"
.format(pid, format))
231
232
def
__enter__(self):
233
self.start()
234
if
self._with_scopes:
235
self._patcher.__enter__()
236
237
def
__exit__(self, val, tp, trace):
238
self.stop()
Callers
nothing calls this directly
Calls
1
start
Method · 0.95
Tested by
no test coverage detected