fdiag_xs

0.1.3 • Public • Published

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.

Package Sidebar

Install

npm i fdiag_xs

Weekly Downloads

6

Version

0.1.3

License

ISC

Unpacked Size

6.58 kB

Total Files

10

Last publish

Collaborators

  • develxs