UNPKG

@angular/benchpress

Version:

Benchpress - a framework for e2e performance tests

34 lines (33 loc) 1.2 kB
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { InjectionToken } from '@angular/core'; import { MeasureValues } from '../measure_values'; import { Reporter } from '../reporter'; import { SampleDescription } from '../sample_description'; /** * A reporter that writes results into a json file. */ export declare class JsonFileReporter extends Reporter { private _description; private _path; private _writeFile; private _now; static PATH: InjectionToken<unknown>; static PROVIDERS: ({ provide: typeof JsonFileReporter; deps: (InjectionToken<unknown> | typeof SampleDescription)[]; useValue?: undefined; } | { provide: InjectionToken<unknown>; useValue: string; deps?: undefined; })[]; constructor(_description: SampleDescription, _path: string, _writeFile: Function, _now: Function); reportMeasureValues(measureValues: MeasureValues): Promise<any>; reportSample(completeSample: MeasureValues[], validSample: MeasureValues[]): Promise<any>; }