UNPKG

@botonic/plugin-contentful

Version:

## What Does This Plugin Do?

20 lines 533 B
import { PerformanceMeasurer } from './performance-measurer'; export class WebPerformanceMeasurer extends PerformanceMeasurer { constructor() { super(performance); } getEntriesByName(name) { return this.perf.getEntriesByName(name); } end(mark, name) { super.end(mark, name); if (this.enabled) { this.allProfiled[name] = []; } } clear() { super.clear(); this.perf.clearMarks(); } } //# sourceMappingURL=web-performance-measurer.js.map