Memory profiling for .NET developers
Moderators: Luke Jefferson, StephenC, AndrewH, melvyn.harbour, james.billings, Laura Morley, dene.boulton
I'm new for ANTS memory profiler. First I take the first snapshot, then open a window, and close it. Take the second snapshot . The memory difference between 2 snapshot is about 3 MB. I open this window again and close it. Take the 3rd snapshot, The memory difference between 2nd and 3rd snapshot is small(20kB). If later on open more windows and close, the memory still doesn't have much difference. Only the first time the memory will go up.
I'm not sure if this is memory leak. Maybe some static resources are kept in memory for the first time?[/img]
- Posts: 2
- Joined: Tue Jun 05, 2012 10:02 pm
The initial memory increase may well just be the initial creation of objects. A memory leak will normally manifest itself as an increase over time, so if, every time you open and close the window, the memory goes up and never back down, the it may indicate a problem.
You could take an initial snapshot, then one with the window open, then one with the window closed again. By viewing the Class List view in ANTS you can then check the diff +/- between each pair of snapshots to see if the objects relating to the window you opened are being removed successfully, as I'd expect there to be an increase in the diff between 1 + 2, then a decrease again between 2 and 3.
- Posts: 1144
- Joined: Wed Jun 16, 2010 11:10 am
- Location: My desk.
Return to ANTS Memory Profiler 7
Who is online
Users browsing this forum: No registered users and 0 guests