fdiag_xs
v0.1.3
Published
Small timer module for tracking performance of functions.
Downloads
10
Maintainers
Readme
DESCRIPTION
NOTE: This file is intended for private use only, use it at your own risk.
This project is only a small script, that measures the duration of functions' runtimes.
Usage
// importing modules we want to override functions in
const a = require('./.../a');
const b = require('./.../b');
// overriding functions
require('./timer')(
[
{module: a, funcname: 'foo'},
{module: a, funcname: 'bar'},
{module: b, funcname: 'foo'},
{module: b, funcname: 'bar'}
]
);
See test.js
file for a complete example.