Red Gate forums :: View topic - Feature Request: Automatic Periodic Snapshots
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler Previous Versions
ANTS Memory Profiler Previous Versions forum

Feature Request: Automatic Periodic Snapshots

Search in ANTS Memory Profiler Previous Versions forum
Post new topic   Reply to topic
Jump to:  
Author Message
Cheetah



Joined: 04 Jan 2008
Posts: 12

PostPosted: Wed Oct 06, 2010 11:12 pm    Post subject: Feature Request: Automatic Periodic Snapshots Reply with quote

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.
Back to top
View user's profile Send private message
Cheetah



Joined: 04 Jan 2008
Posts: 12

PostPosted: Thu Oct 07, 2010 6:17 pm    Post subject: Another reason for this Reply with quote

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 ...
Back to top
View user's profile Send private message
dom.smith



Joined: 03 Jun 2010
Posts: 94
Location: Cambridge, UK

PostPosted: Fri Nov 05, 2010 5:28 pm    Post subject: Reply with quote

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/viewtopic.php?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.
Back to top
View user's profile Send private message
Cheetah



Joined: 04 Jan 2008
Posts: 12

PostPosted: Fri Nov 05, 2010 5:55 pm    Post subject: Sounds Useful Reply with quote

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 Smile
Back to top
View user's profile Send private message
mwpowellhtx



Joined: 26 Jun 2012
Posts: 1

PostPosted: Tue Jun 26, 2012 7:58 pm    Post subject: Reply with quote

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).
Back to top
View user's profile Send private message
jessica.ramos



Joined: 23 Apr 2012
Posts: 233

PostPosted: Fri Jun 29, 2012 5:40 pm    Post subject: Reply with quote

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/content/ANTS_Memory_Profiler/help/7.4/amp_snapshot_api
_________________
Jessica Ramos
Technical Support
Red Gate Software Ltd.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group