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

Method format_path

imperative/python/megengine/utils/profiler.py:229–230  ·  view source on GitHub ↗
(self, path, pid, format)

Source from the content-addressed store, hash-verified

227 _living_profilers.remove(self)
228
229 def format_path(self, path, pid, format):
230 return os.path.join(path, "{}.{}".format(pid, format))
231
232 def __enter__(self):
233 self.start()

Callers 2

pathMethod · 0.95
dumpMethod · 0.95

Calls 2

joinMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected