Timer helper for debugging performance issues.
Usage:
const t = new Timer();
t.log('start'); // 'start' is just an arbitrary tag, can be any string
doSlowThing(); t.log('doSlowThing');
doOtherSlowThing(); t.log('doOtherSlowThing');
// etc t.log('done');
logger.debug('timings', t.describe());
Private
Generated using TypeDoc
Timer helper for debugging performance issues.
Usage:
const t = new Timer();
t.log('start'); // 'start' is just an arbitrary tag, can be any string
doSlowThing(); t.log('doSlowThing');
doOtherSlowThing(); t.log('doOtherSlowThing');
// etc t.log('done');
logger.debug('timings', t.describe());