Instances by Class - only show new allocations?

Questions about YourKit .NET Profiler
Post Reply
otherdave
Posts: 2
Joined: Tue Mar 12, 2013 11:54 am

Instances by Class - only show new allocations?

Post by otherdave »

I'm debugging a memory leak and I can tell that between two snapshots there are +43 instances of a class. I want to view the memory/allocation/Path to GC Roots of JUST THOSE objects. Is there a way to do that?

When I open up the "Instances by Class" filter it tell me that it will show me all 103 instances and not just the 43 new ones. Any suggestions?
otherdave
Posts: 2
Joined: Tue Mar 12, 2013 11:54 am

Re: Instances by Class - only show new allocations?

Post by otherdave »

Oof, I just saw this post which makes my a duplicate:

http://forums.yourkit.com/viewtopic.php ... ons#p11155

That post says "You will be able to easily identify objects created after allocation recording has been started."

Is this suggesting that I make my first run with allocation turned off, then turn on allocation and only look at the objects for which I have allocation information? Or is there a better way?
Anton Katilin
Posts: 6172
Joined: Wed Aug 11, 2004 8:37 am

Re: Instances by Class - only show new allocations?

Post by Anton Katilin »

Hello otherdave

Yes, your approach is great. Please ensure that you capture the snapshot when allocation recording is running, i.e. don't stop it explicitly before capturing the snapshot.

Best regards,
Anton
Post Reply