MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / profiled_check_call

Function profiled_check_call

tools/toolchain_profiler.py:81–90  ·  view source on GitHub ↗
(cmd, *args, **kw)

Source from the content-addressed store, hash-verified

79 return returncode
80
81 def profiled_check_call(cmd, *args, **kw):
82 pid = ToolchainProfiler.imaginary_pid()
83 ToolchainProfiler.record_subprocess_spawn(pid, cmd)
84 try:
85 ret = original_subprocess_check_call(cmd, *args, **kw)
86 except Exception as e:
87 ToolchainProfiler.record_subprocess_finish(pid, e.returncode)
88 raise
89 ToolchainProfiler.record_subprocess_finish(pid, 0)
90 return ret
91
92 def profiled_check_output(cmd, *args, **kw):
93 pid = ToolchainProfiler.imaginary_pid()

Callers

nothing calls this directly

Calls 3

imaginary_pidMethod · 0.80

Tested by

no test coverage detected