I'm working on this tool "ntop" to be able to quickly see the heaviest functions in any running Node process like "top" command for regular processes in Linux. The initial version required code changes but now it's working with just CLI (Linux only first)<p>npm i -g ntop<p>ntop inject 12345 // where 12345 is process id<p>ntop 12345<p>Prints:<p>Profiling client node-proc-3150 time 3000<p>(garbage collector) | 11.703ms |<p>utils.bulkPreparePacket | 1.53ms | file:///home/app/src/Utils.js:91:26<p>(anonymous) | 1.181ms | evalmachine.:3:14<p>(anonymous) | 1.126ms | file:///home/app/node_modules/lodash/lodash.js:1223:19<p>https://github.com/DVLP/ntop/
For what it's worth there used to be a package in many Linux repositories called "ntop" [1] however it became less popular when they went commercial. There is still a community version but I have no idea how popular it is any more. It was quite popular prior to projects like PiHole. Perhaps the older ntop has fallen out of favor so maybe there won't be any confusion. I have no idea how many distros still have the other ntop.<p>[1] - <a href="https://www.ntop.org/" rel="nofollow">https://www.ntop.org/</a>