Memory profiling for .NET developers
Moderators: Luke Jefferson, StephenC, AndrewH, melvyn.harbour, james.billings, Laura Morley, dene.boulton
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
- Posts: 11
- Joined: Thu Aug 16, 2012 11:00 pm
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
- Posts: 13
- Joined: Fri Jul 02, 2010 3:13 pm
Return to ANTS Memory Profiler 7
Who is online
Users browsing this forum: No registered users and 0 guests