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.

Trace with limited scope , profile only one package

Moderators: Vladimir Kondratyev, Anton Katilin

Trace with limited scope , profile only one package

Postby ajvdberg » Tue Aug 10, 2021 9:33 am

Hi,

I want to trace a certain package (instead of sampling) . If i trace the full JVM then my overhead is to high. So my goal is to instrument only a certain package. I saw that you can specify the scope with a filter in the file

~/.yjp/bci_filter.txt

But the syntax to set a filter is not complete clear to me. So if i want to instrument ONLY the package e.g

nl.mycompanyname.xyz.module.*

Do i need to add this line into the bci_filter file

+nl.mycompanyname.xyz.module.*

And restart my profiled application ?

Thanks on forehand already for clarification :)

Regards,
Arjan

like
ajvdberg
 
Posts: 4
Joined: Fri Jul 09, 2021 1:02 pm

Re: Trace with limited scope , profile only one package

Postby Anton Katilin » Wed Aug 11, 2021 7:20 am

Hello Arjan

Please specify two lines

*
+nl.mycompanyname.xyz.module.*

and restart the profiled application.

Best regards,
Anton
Anton Katilin
 
Posts: 6062
Joined: Wed Aug 11, 2004 8:37 am

Re: Trace with limited scope , profile only one package

Postby ajvdberg » Fri Aug 27, 2021 2:28 pm

Hi Anton,

Thanks for all details ! It works now as expected

Regards,
Arjan
ajvdberg
 
Posts: 4
Joined: Fri Jul 09, 2021 1:02 pm


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.