@angular/benchpress
Version:
Benchpress - a framework for e2e performance tests
33 lines (32 loc) • 865 B
TypeScript
/**
* @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 { Metric } from '../metric';
export declare class MultiMetric extends Metric {
private _metrics;
static provideWith(childTokens: any[]): any[];
constructor(_metrics: Metric[]);
/**
* Starts measuring
*/
beginMeasure(): Promise<any>;
/**
* Ends measuring and reports the data
* since the begin call.
* @param restart: Whether to restart right after this.
*/
endMeasure(restart: boolean): Promise<{
[key: string]: any;
}>;
/**
* Describes the metrics provided by this metric implementation.
* (e.g. units, ...)
*/
describe(): {
[key: string]: any;
};
}