MCPcopy
hub / github.com/angular/angular / aggregate

Function aggregate

packages/benchpress/test/metric/perflog_metric_spec.ts:416–439  ·  view source on GitHub ↗
(
        events: any[],
        {
          microMetrics,
          captureFrames,
          receivedData,
          requestCount,
        }: {
          microMetrics?: {[key: string]: string};
          captureFrames?: boolean;
          receivedData?: boolean;
          requestCount?: boolean;
        } = {},
      )

Source from the content-addressed store, hash-verified

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) => {

Callers 1

Calls 7

markStartMethod · 0.80
markEndMethod · 0.80
createMetricFunction · 0.70
thenMethod · 0.65
pushMethod · 0.45
beginMeasureMethod · 0.45
endMeasureMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…