(
events: any[],
{
microMetrics,
captureFrames,
receivedData,
requestCount,
}: {
microMetrics?: {[key: string]: string};
captureFrames?: boolean;
receivedData?: boolean;
requestCount?: boolean;
} = {},
)
| 414 | |
| 415 | describe('aggregation', () => { |
| 416 | function aggregate( |
| 417 | events: any[], |
| 418 | { |
| 419 | microMetrics, |
| 420 | captureFrames, |
| 421 | receivedData, |
| 422 | requestCount, |
| 423 | }: { |
| 424 | microMetrics?: {[key: string]: string}; |
| 425 | captureFrames?: boolean; |
| 426 | receivedData?: boolean; |
| 427 | requestCount?: boolean; |
| 428 | } = {}, |
| 429 | ) { |
| 430 | events.unshift(eventFactory.markStart('benchpress0', 0)); |
| 431 | events.push(eventFactory.markEnd('benchpress0', 10)); |
| 432 | const metric = createMetric([events], null!, { |
| 433 | microMetrics: microMetrics, |
| 434 | captureFrames: captureFrames, |
| 435 | receivedData: receivedData, |
| 436 | requestCount: requestCount, |
| 437 | }); |
| 438 | return metric.beginMeasure().then((_) => metric.endMeasure(false)); |
| 439 | } |
| 440 | |
| 441 | describe('frame metrics', () => { |
| 442 | it('should calculate mean frame time', (done) => { |
no test coverage detected
searching dependent graphs…