MCPcopy
hub / github.com/angular/angular / endMeasure

Method endMeasure

packages/benchpress/src/metric/multi_metric.ts:45–49  ·  view source on GitHub ↗

* Ends measuring and reports the data * since the begin call. * @param restart: Whether to restart right after this.

(restart: boolean)

Source from the content-addressed store, hash-verified

43 * @param restart: Whether to restart right after this.
44 */
45 override endMeasure(restart: boolean): Promise<{[key: string]: any}> {
46 return Promise.all(this._metrics.map((metric) => metric.endMeasure(restart))).then((values) =>
47 mergeStringMaps(<any>values),
48 );
49 }
50
51 /**
52 * Describes the metrics provided by this metric implementation.

Callers

nothing calls this directly

Calls 4

mergeStringMapsFunction · 0.85
mapMethod · 0.80
thenMethod · 0.65
allMethod · 0.45

Tested by

no test coverage detected