playwright-performance
Version:
Playwright plugin for analyzing test flow performance
26 lines (25 loc) • 772 B
TypeScript
import { TestInfo } from "@playwright/test";
import { Options } from "./entities/options";
export declare class PerformanceMain {
private _options;
private _instanceid;
private logFileName;
private performanceCache;
constructor();
constructor(options: Options);
sampleStart(stepName: string): void;
sampleEnd(stepName: string): void;
getSampleTime(stepName: string): number;
/**
* @deprecated Don't use this method directly.
*/
initialize(): Promise<void>;
/**
* @deprecated Don't use this method directly.
*/
finalizeTest(browser: any, workerInfo: TestInfo): Promise<void>;
/**
* @deprecated Don't use this method directly.
*/
analyzeResults(workerIndex: number): Promise<void>;
}