Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ profile
Function
profile
imperative/python/megengine/utils/profiler.py:262–265 ·
view source on GitHub ↗
(*args, **kwargs)
Source
from the content-addressed store, hash-verified
260
261
262
def
profile(*args, **kwargs):
263
if
len(args) == 1 and len(kwargs) == 0 and callable(args[0]):
264
return
Profiler()(args[0])
265
return
Profiler(*args, **kwargs)
266
267
268
def
merge_trace_events(directory: str):
Callers
7
profile
Method · 0.85
profile_single_algo
Method · 0.85
TEST_F
Function · 0.85
TEST_F
Function · 0.85
TEST_F
Function · 0.85
TEST_F
Function · 0.85
TEST_F
Function · 0.85
Calls
1
Profiler
Class · 0.70
Tested by
5
TEST_F
Function · 0.68
TEST_F
Function · 0.68
TEST_F
Function · 0.68
TEST_F
Function · 0.68
TEST_F
Function · 0.68