Feature Request: Automatic Periodic Snapshots
Cheetah
Posts: 17
I'm debugging a very slow memory leak (that eventually leads to an application crash), and the most convenient way for me to do this would be to leave the app running under the memory profiler overnight. However, because the leak eventually kills off the app in a very unceremonious way, I want to make sure there is a snapshot at least near to the crash.
So, the hypothetical feature that would be very helpful for me: Add an option / behavior to the profiler to have it automatically take a snapshot every N seconds.
A fancier version that might also be useful: automatically take a snapshot when the {memory counter, e.g. # bytes in all heaps} value changes by more than N bytes since the last snapshot.
So, the hypothetical feature that would be very helpful for me: Add an option / behavior to the profiler to have it automatically take a snapshot every N seconds.
A fancier version that might also be useful: automatically take a snapshot when the {memory counter, e.g. # bytes in all heaps} value changes by more than N bytes since the last snapshot.
Comments
I have reason to believe that I have code somewhere that only leaks if the monitor has gone into power save mode. As soon as it comes out of power save, the memory is released. So to diagnose the leak, I need a way to take a snapshot without waking up the monitor ...
I think you might find the EA build of ANTS Memory Profiler 7, which we released a couple of days ago, useful. You can obtain it from http://www.red-gate.com/messageboard/vi ... hp?t=12095.
While it does not take periodic snapshots, you can now add one line to your code to take a snapshot when that line is executed.
Please let us know what you think.
Dom.
Project Manager,
Redgate.
Thanks
Yes, the snapshot API feature has been available since version 7.0 of the Memory Profiler. It's simple to use--just add a reference to RedGate.MemoryProfiler.Snapshot.dll and call RedGate.MemoryProfiler.Snapshot.TakeSnapshot() in your code as needed.
You can find more about it here: http://www.red-gate.com/supportcenter/c ... apshot_api
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?