(cmd, *args, **kw)
| 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() |
nothing calls this directly
no test coverage detected