node-webkit-agent
node-webkit-agent copied to clipboard
Feature Request :: programatically create heap dump
Hi,
I would love to be able to programmatically trigger a heap dump. Is this at all possible?
Thanks,
-- Sugendran
That would be a neat feature. I'm currently working on the debugger agent, but I'll see if I can roll this feature out before and check if DevTools front-end will be able to handle it without modifications.
+1
+1
I'm troubleshooting memory leak issues on an application. What I'd like to be able to do is use my existing suite of Mocha tests to help uncover where the problems are. If I could programmatically trigger the stack trace that would allow me to do some interesting things, like triggering it before/after each test. It would be grand if I could automate it to run the suite and generate a series of heap diffs.
I think the ideal workflow for me would be to generate a set of profile files, then open them up in the profiler at my leisure. Attaching to the process wouldn't be necessary at that point.
Thanks for your work on this tool! This is the best I'm seeing right now for tracking down leaks.
Thank you @bitmage, just curious, doesn't https://github.com/lloyd/node-memwatch help achieving what you want?
(bit late now )but I think memwatch is (speciicly)for memory leak detection why not use heapdumper if you want to take heap dumps whenever you want?