Allocations for a code section

Questions about YourKit Java Profiler
Post Reply
ngxJP
Posts: 1
Joined: Fri Dec 07, 2018 1:21 pm

Allocations for a code section

Post by ngxJP »

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

Re: Allocations for a code section

Post by Anton Katilin »

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)
Post Reply