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

Allocations for a code section

Moderators: Vladimir Kondratyev, Anton Katilin

Allocations for a code section

Postby ngxJP » Fri Dec 07, 2018 1:26 pm

We are using yourkit from Idea.
It seems that debuggind and profiling at the same time are incompatible.
The problem is to monitor fine object allocation for a section of code
We can do that by introducing System.in.read() for instance, but this is impractical
Is there a way to do that?
Posts: 1
Joined: Fri Dec 07, 2018 1:21 pm

Re: Allocations for a code section

Postby Anton Katilin » Tue Dec 11, 2018 10:11 am

Object allocation recording ( https://www.yourkit.com/docs/java/help/allocations.jsp ) can be started and stopped automatically:
- with triggers on method invocation: https://www.yourkit.com/docs/java/help/triggers.jsp
- with the profiler API: https://www.yourkit.com/docs/java/help/api.jsp (see the class Controller)
Anton Katilin
Posts: 5719
Joined: Wed Aug 11, 2004 8:37 am

Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 17 guests