import { Metric } from "../../Metrics/Metric.mjs"; import { Plugin } from "../../Plugin/Plugin.mjs"; //#region src/Plugins/PerformanceMeasure/PerformanceMeasurePlugin.d.ts /** * Performance Measure Plugin * * This plugin creates Performance API entries for each of * your metrics. When a `Metric` configured with this plugin * reaches it's `stop()` event, a call to * ```typescript * performance.measure(metric.name, { * start: metric.startTime, * duration: metric.duration, * end: metric.stopTime * }); * ``` * is made. From there you may access your Metrics using the * native Performance API by calling * ```typescript * performance.getEntriesByName(metric.name); * ``` */ declare class PerformanceMeasurePlugin> extends Plugin { protected stop(metric: T): void; } //#endregion export { PerformanceMeasurePlugin };