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

Function get_tot_time

imperative/python/megengine/tools/profile_analyze.py:179–184  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

177 host_end_func = TimeFuncHelper.eval_time_func("host", "end", np.max)
178
179 def get_tot_time(func):
180 rec = analyzer_tot.select(func, aggregate=np.sum)
181 if not rec:
182 return "N/A"
183 rec = rec[0]
184 return rec.time
185
186 tab = []
187 tot_dev_time = get_tot_time(device_end_func)

Callers 1

summaryFunction · 0.85

Calls 1

selectMethod · 0.45

Tested by

no test coverage detected