I have nodejs application with a lot of functions.
How can I log how much time takes to execute each function?
for example, my app should execute a lot of functions:
execfn1(); -> should output in some log, takes: 1ms..
execfn2(); -> should output in some log, takes: 2ms..
execfn3(); -> should output in some log, takes: 3ms..
execfn4(); -> should output in some log, takes: 5ms..
execfnN(); -> should output in some log, takes: 7ms..
I can't wrap every function in begin and end like: var endtimer = starttimer(execfnN);