V8-profiler compatibility
-
I am trying to use this script https://github.com/felixge/node-memory-leak-tutorial for testing the nodebb app.js memory leaks and heap allocation profiling. But it doesn't loads up the "Profile" tab ( loads source and console tab properly).
Is app.js compatible with v8-profiler for memory testing?
-
@vatsal said:
I am trying to use this script https://github.com/felixge/node-memory-leak-tutorial for testing the nodebb app.js memory leaks and heap allocation profiling. But it doesn't loads up the "Profile" tab ( loads source and console tab properly).
Is app.js compatible with v8-profiler for memory testing?
@ankitpr89 we may find solution to our problem in this thread.
-
@vatsal Did you use
sudo npm install -g node-inspector
Global modules can be funky if you don't use sudo.
Also, have you checked your browser's dev tools and logs to see if things are getting blocked, or what errors are occurring within the browser?
-
@vatsal I did a little reading...you might be out of luck. https://github.com/node-inspector/node-inspector/issues/126
Having said that, looks like some people were able to achieve working configurations, so read through the issues page above. You might need to uninstall your current node-inspector and do:
sudo npm install -g [email protected]
But it looks like that might also bring it's own set of problems. At the bottom, one of the maintainers links to another issue which is a year old, so it's probably not going to be fixed anytime soon.
He also mentions this debugger might be worth trying: https://www.npmjs.org/package/bugger
Good Luck!
-
@mootzville thanks for your help
-
Hey vatsal,
Have you made any progress of using any of the inspectors with nodebb?
Just thought I'd check before going off on a wild goose chase!
I'm having couple of small issues with a couple of plugins so would like to see what's going on under the hood, this will help me get a better understanding of the system faster and help me fix stuff!
Thanks
Dave