async-trace-log
v1.2.5
Published
Track and visualize async objects created in your application with ease
Downloads
10
Maintainers
Readme
Track and visualize all the Async functions in your code on the go
add the file as a requirement function at the top of index.js
file of your application
require("asyncHookLog")([])
-- to track all the async objects
require("asyncHookLog")([TickObject, TLSWrap])
-- to track all but these two async objects
Now, running your code using node generates ./asyncLog.json
file which contains log of the objects tracked
and, hierarchy.png
shows the hierarchy of async objects and total run time
copy the visualize.html
file to your local directory, or change the JSONFilePath
in it(as required)
now run serve the visualize.html
in browser using a server to see a gantt chart of all async calls tracked