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

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: 6028
Joined: Wed Aug 11, 2004 8:37 am

Return to Java Profiler

Who is online

Users browsing this forum: No registered users and 1 guest

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.