UNPKG

@angular/benchpress

Version:

Benchpress - a framework for e2e performance tests

41 lines (40 loc) 1.4 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 for the console */ export declare class ConsoleReporter extends Reporter { private _columnWidth; private _print; static PRINT: InjectionToken<unknown>; static COLUMN_WIDTH: InjectionToken<unknown>; static PROVIDERS: ({ provide: typeof ConsoleReporter; deps: (InjectionToken<unknown> | typeof SampleDescription)[]; useValue?: undefined; } | { provide: InjectionToken<unknown>; useValue: number; deps?: undefined; } | { provide: InjectionToken<unknown>; useValue: (v: any) => void; deps?: undefined; })[]; private static _lpad; private _metricNames; constructor(_columnWidth: number, sampleDescription: SampleDescription, _print: Function); private _printDescription; reportMeasureValues(measureValues: MeasureValues): Promise<any>; reportSample(completeSample: MeasureValues[], validSamples: MeasureValues[]): Promise<any>; private _printStringRow; }