Created by Jerry Wang, last modified on Sep 27, 2014

Set breakpoints at test lines 13 and 16. Run with debug, first the breakpoint is triggered at line13:



Click Profiles TAB, click button “Take Snapshot” :



Create Snapshot 3:

Execute the code in debug mode to line 16 and click icon “Take heap snapshot.” to generate the second snapshot:

Allocated Objects allocated between Snapshot 3 and Snapshot 4 from dropdown list:

In Summary, use the variable name array as filter to find the variable arra with the highest memory usage between Snapshot3 and Snapshot4:

Hover your mouse over arRA to view the detail: