UNPKG

playwright-performance-reporter

Version:

Measure and publish performance metrics from browser dev-tools when running playwright

26 lines (25 loc) 940 B
import type CDP from 'chrome-remote-interface'; import { type ChromiumMetricObserver, type Metric, type ObserverOptions } from '../../../types/index.js'; export declare class TotalJsHeapSize implements ChromiumMetricObserver { protected options?: ObserverOptions | undefined; readonly name = "totalJsHeapSize"; readonly chromiumCompatibleName = "JSHeapTotalSize"; readonly plugins: import("../../../index.js").ChromiumMeasurePlugin[]; constructor(options?: ObserverOptions | undefined); /** * @inheritdoc */ onStart(accumulator: Metric, developmentTools: CDP.Client): Promise<void>; /** * @inheritdoc */ onSampling(accumulator: Metric, developmentTools: CDP.Client): Promise<void>; /** * @inheritdoc */ onStop(accumulator: Metric, developmentTools: CDP.Client): Promise<void>; /** * Common function for onStart and onStop hook */ private common; }