MCPcopy 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
262def 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
268def merge_trace_events(directory: str):

Callers 7

profileMethod · 0.85
profile_single_algoMethod · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85

Calls 1

ProfilerClass · 0.70

Tested by 5

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68