Red Gate forums :: View topic - how can I save snap shot and snap shot data?
Return to www.red-gate.com RSS Feed Available

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

how can I save snap shot and snap shot data?

Search in ANTS Memory Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message
hyang



Joined: 16 Aug 2012
Posts: 11

PostPosted: Thu Aug 16, 2012 11:06 pm    Post subject: how can I save snap shot and snap shot data? Reply with quote

Hi,
I am new to memory profiler.
I try to save each snap shot or snap shot data through my .net code.

I have write code in the function to call MemoryProfiler.Snapshot.TakeSnapshot
but i noticed that, it will only generate snapshot on screen. I can't save it into a file in a directory, neither can't save any data inside of snapshot.

Is there anyway to save the snapshot into a file? especially for the summary tab.
It's better to save the data of the snapshot into a file: such as for each snap shot, it could save the generation1 size, generation2 size etc?

Is there any way to do it?

Appreciate for your help
Back to top
View user's profile Send private message
jrg



Joined: 02 Jul 2010
Posts: 13

PostPosted: Wed Sep 05, 2012 5:23 pm    Post subject: Reply with quote

Unfortunately there's no way to do this with the snapshot API - the results can only be saved from within the GUI.

You could try using perfmon counters to record the size of each generation, but these can be unreliable as some of them are only updated after a garbage collection.
_________________
Test Engineer, .NET Division
Red Gate Software
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