UNPKG

@angular/benchpress

Version:

Benchpress - a framework for e2e performance tests

30 lines (29 loc) 914 B
/** * @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 { StaticProvider } from '@angular/core'; import { SampleState } from './sampler'; /** * The Runner is the main entry point for executing a sample run. * It provides defaults, creates the injector and calls the sampler. */ export declare class Runner { private _defaultProviders; constructor(_defaultProviders?: StaticProvider[]); sample({ id, execute, prepare, microMetrics, providers, userMetrics }: { id: string; execute?: Function; prepare?: Function; microMetrics?: { [key: string]: string; }; providers?: StaticProvider[]; userMetrics?: { [key: string]: string; }; }): Promise<SampleState>; }