| Author |
Message |
amber
Joined: 05 Jun 2012 Posts: 2
|
Posted: Tue Jun 05, 2012 10:15 pm Post subject: Did my project have memory leak? |
|
|
Hi,
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] |
|
| Back to top |
|
 |
james.billings
Joined: 16 Jun 2010 Posts: 844 Location: My desk.
|
Posted: Fri Jun 15, 2012 12:00 pm Post subject: |
|
|
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. |
|
| 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