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

Function profiled_check_output

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

Source from the content-addressed store, hash-verified

90 return ret
91
92 def profiled_check_output(cmd, *args, **kw):
93 pid = ToolchainProfiler.imaginary_pid()
94 ToolchainProfiler.record_subprocess_spawn(pid, cmd)
95 try:
96 ret = original_subprocess_check_output(cmd, *args, **kw)
97 except Exception as e:
98 ToolchainProfiler.record_subprocess_finish(pid, e.returncode)
99 raise
100 ToolchainProfiler.record_subprocess_finish(pid, 0)
101 return ret
102
103 class ProfiledPopen(original_Popen):
104 def __init__(self, args, *otherargs, **kwargs):

Callers

nothing calls this directly

Calls 3

imaginary_pidMethod · 0.80

Tested by

no test coverage detected