(args: string[])
| 1134 | } |
| 1135 | |
| 1136 | async function runAppleSimulatorProcessCommand(args: string[]): Promise<ExecResult> { |
| 1137 | const result = await runXcrun(args, { |
| 1138 | allowFailure: true, |
| 1139 | timeoutMs: APPLE_PERF_TIMEOUT_MS, |
| 1140 | }); |
| 1141 | if (result.exitCode === 0) return result; |
| 1142 | return await runAppleToolCommand('ps', ['-axo', 'pid=,%cpu=,rss=,command='], { |
| 1143 | timeoutMs: APPLE_PERF_TIMEOUT_MS, |
| 1144 | }); |
| 1145 | } |
| 1146 | |
| 1147 | function matchesAppleExecutableProcess( |
| 1148 | command: string, |
no test coverage detected