( session: SessionState, appBundleId: string, options: BuildPerfResponseOptions, )
| 416 | } |
| 417 | |
| 418 | async function sampleAndroidPerfResults( |
| 419 | session: SessionState, |
| 420 | appBundleId: string, |
| 421 | options: BuildPerfResponseOptions, |
| 422 | ): Promise<{ |
| 423 | memory: SettledMetricResult; |
| 424 | cpu: SettledMetricResult; |
| 425 | fps: SettledMetricResult; |
| 426 | }> { |
| 427 | const androidPerfOptions = { adb: options.androidAdb }; |
| 428 | const [memory, cpu, fps] = await Promise.allSettled([ |
| 429 | sampleAndroidMemoryPerf(session.device, appBundleId, androidPerfOptions), |
| 430 | sampleAndroidCpuPerf(session.device, appBundleId, androidPerfOptions), |
| 431 | sampleAndroidFramePerf(session.device, appBundleId, androidPerfOptions), |
| 432 | ]); |
| 433 | return { memory, cpu, fps }; |
| 434 | } |
| 435 | |
| 436 | async function sampleApplePerfResultsForSession( |
| 437 | session: SessionState, |
no test coverage detected