MCPcopy Index your code
hub / github.com/angular/angular / _report

Method _report

packages/benchpress/src/sampler.ts:86–97  ·  view source on GitHub ↗
(state: SampleState, metricValues: {[key: string]: any})

Source from the content-addressed store, hash-verified

84 }
85
86 private _report(state: SampleState, metricValues: {[key: string]: any}): Promise<SampleState> {
87 const measureValues = new MeasureValues(state.completeSample.length, this._now(), metricValues);
88 const completeSample = state.completeSample.concat([measureValues]);
89 const validSample = this._validator.validate(completeSample);
90 let resultPromise = this._reporter.reportMeasureValues(measureValues);
91 if (validSample != null) {
92 resultPromise = resultPromise.then((_) =>
93 this._reporter.reportSample(completeSample, validSample),
94 );
95 }
96 return resultPromise.then((_) => new SampleState(completeSample, validSample));
97 }
98}
99
100export class SampleState {

Callers 1

_iterateMethod · 0.95

Calls 4

validateMethod · 0.65
thenMethod · 0.65
reportMeasureValuesMethod · 0.45
reportSampleMethod · 0.45

Tested by

no test coverage detected