Feature Request: Automatic Periodic Snapshots

Memory profiling for .NET developers

Feature Request: Automatic Periodic Snapshots

Postby Cheetah » Wed Oct 06, 2010 11:12 pm

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.
Cheetah
 
Posts: 12
Joined: Fri Jan 04, 2008 11:42 pm

Another reason for this

Postby Cheetah » Thu Oct 07, 2010 6:17 pm

Still working on that same bug, I have another reason to desire automatic snapshots.

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 ...
Cheetah
 
Posts: 12
Joined: Fri Jan 04, 2008 11:42 pm

Postby dom.smith » Fri Nov 05, 2010 5:28 pm

Hi,

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.
Dominic Smith,
Project Manager,
Red Gate Software.
dom.smith
 
Posts: 95
Joined: Thu Jun 03, 2010 5:54 pm
Location: Cambridge, UK

Sounds Useful

Postby Cheetah » Fri Nov 05, 2010 5:55 pm

That sounds definitely useful, and much more powerful than the limited automation I suggested. I can trivially implement timed snapshots and whatever else I need on top of that.

Thanks :)
Cheetah
 
Posts: 12
Joined: Fri Jan 04, 2008 11:42 pm

Postby mwpowellhtx » Tue Jun 26, 2012 7:58 pm

This was posted a couple of years ago. Has there been any further movement on the automatic memory snapshot? and/or just how accessible is this feature in the API? I am taking a look at this for obvious reasons: to assess and hopefully arrest a serious memory "leak" (i.e. usage of static memory, stack, heap, etc).
mwpowellhtx
 
Posts: 1
Joined: Tue Jun 26, 2012 7:54 pm

Postby jessica.ramos » Fri Jun 29, 2012 5:40 pm

Hello!

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
Technical Support
Red Gate Software Ltd.
jessica.ramos
 
Posts: 235
Joined: Mon Apr 23, 2012 1:13 pm


Return to ANTS Memory Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests