@botonic/plugin-contentful
Version:
Botonic Plugin Contentful is one of the **[available](https://github.com/hubtype/botonic/tree/master/packages)** plugins for Botonic. **[Contentful](http://www.contentful.com)** is a CMS (Content Management System) which manages contents of a great variet
24 lines (19 loc) • 472 B
text/typescript
import { PerformanceMeasurer } from './performance-measurer'
export class WebPerformanceMeasurer extends PerformanceMeasurer {
constructor() {
super(performance)
}
getEntriesByName(name: string): PerformanceEntry[] {
return this.perf.getEntriesByName(name)
}
end(mark: string, name: string) {
super.end(mark, name)
if (this.enabled) {
this.allProfiled[name] = []
}
}
clear() {
super.clear()
this.perf.clearMarks()
}
}