Fully featured low overhead profiler for Java EE and Java SE platforms.
Ultimate profiling and monitoring solution for Gradle, Maven, Ant, JUnit and TestNG.
Easy to use performance and memory profiler for .NET framework.

Instances by Class - only show new allocations?

Moderators: Vladimir Kondratyev, Anton Katilin

Instances by Class - only show new allocations?

Postby otherdave » Tue Mar 12, 2013 12:01 pm

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?

Postby otherdave » Tue Mar 12, 2013 12:14 pm

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

viewtopic.php?f=5&t=3373&p=11155&hilit=allocations#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?
otherdave
 
Posts: 2
Joined: Tue Mar 12, 2013 11:54 am

Re: Instances by Class - only show new allocations?

Postby Anton Katilin » Tue Mar 12, 2013 2:00 pm

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
Anton Katilin
 
Posts: 5575
Joined: Wed Aug 11, 2004 8:37 am


Return to .NET Profiler

Who is online

Users browsing this forum: No registered users and 2 guests