Page 1 of 1

Compare two snapshots

Posted: Thu Mar 04, 2010 4:57 pm
by Kiran
Hi,

I would like to compare two different states of an application for memory allocations. I am comparing two snapshots of data. I see the new bytes allocated. I would like to know what triggered those allocations pointing to the callstack? Am I doing the right thing? if yes, how do I find the information? Kindly help. Thanks.

Regards
Kiran

Re: Compare two snapshots

Posted: Fri Mar 05, 2010 4:53 pm
by Andreas Suurkuusk
You can investigate the allocations of the new instances by showing the Type details of a type with new instances, or by viewing the instance details of a specific new instance. When you view the type details of a type with new instances, you can select "Sort stacks by: New live instances" under the "Allocation stacks" tab. This will show the allocation call stacks of the new instances. You can also sort or filter on new instances in the instance list to the left. By double-clicking a new instance, you will see the details of this instance, including the call stack.

Note that you will not get information about new instances if the snapshots are collected from an attached process, or if you compare snapshots from different sessions.