node-webkit-agent icon indicating copy to clipboard operation
node-webkit-agent copied to clipboard

Feature Request :: programatically create heap dump

Open sugendran opened this issue 12 years ago • 5 comments

Hi,

I would love to be able to programmatically trigger a heap dump. Is this at all possible?

Thanks,

-- Sugendran

sugendran avatar Jun 08 '12 07:06 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.

c4milo avatar Jun 08 '12 12:06 c4milo

+1

axkibe avatar Aug 04 '12 16:08 axkibe

+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.

bitmage avatar Jan 16 '13 00:01 bitmage

Thank you @bitmage, just curious, doesn't https://github.com/lloyd/node-memwatch help achieving what you want?

c4milo avatar Jan 18 '13 20:01 c4milo

(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?

agalazis avatar Aug 08 '15 08:08 agalazis