| 96 | } |
| 97 | let observed = samples.filter(sample => sample.metrics.longFrames); |
| 98 | let median = metric => |
| 99 | observed.length |
| 100 | ? ms( |
| 101 | percentile( |
| 102 | observed.map(sample => sample.metrics[metric]), |
| 103 | 0.5 |
| 104 | ) |
| 105 | ) |
| 106 | : '—'; |
| 107 | rows.push( |
| 108 | `| ${scenario.id} / ${arm} | ${observed.length}/${samples.length} | ${observed.length ? ms(Math.max(...observed.map(sample => sample.metrics.longFrameMax))) : 'none reported'} | ${median('longFrameBlocking')} | ${median('longFrameScript')} | ${median('longFrameStyleLayout')} | ${median('longFrameForcedLayout')} | ${topInvoker(observed)} |` |
| 109 | ); |
no test coverage detected