MCPcopy Index your code
hub / github.com/callstack/agent-device / runAppleSimulatorProcessCommand

Function runAppleSimulatorProcessCommand

src/platforms/apple/core/perf.ts:1136–1145  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

1134}
1135
1136async 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
1147function matchesAppleExecutableProcess(
1148 command: string,

Callers 1

readAppleProcessSamplesFunction · 0.85

Calls 2

runXcrunFunction · 0.90
runAppleToolCommandFunction · 0.90

Tested by

no test coverage detected