| Author |
Message |
hyang
Joined: 16 Aug 2012 Posts: 11
|
Posted: Thu Aug 16, 2012 11:06 pm Post subject: how can I save snap shot and snap shot data? |
|
|
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 |
|
 |
jrg
Joined: 02 Jul 2010 Posts: 13
|
Posted: Wed Sep 05, 2012 5:23 pm Post subject: |
|
|
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 |
|
 |
|
|
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