@signpostmarv/setup-performance-observer
v0.1.3
Published
assistance in setting up PerformanceObserver
Downloads
11
Readme
Install
npm install --save-dev @signpostmarv/setup-performance-observer
Usage
import setup_PerformanceObserver '@signpostmarv/setup-performance-observer';
const instance = new setup_PerformanceObserver({
clear_lines: false,
tweak_order_by_prefix: [
'foo',
'bar',
],
});
instance.obs.observe({entryTypes: ['measure'], buffered: true});
// do work here
instance.log(); // maybe add this in a loop or interval