Trace with limited scope , profile only one package

Questions about YourKit Java Profiler
Post Reply
ajvdberg
Posts: 4
Joined: Fri Jul 09, 2021 1:02 pm

Trace with limited scope , profile only one package

Post by ajvdberg »

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

Re: Trace with limited scope , profile only one package

Post by Anton Katilin »

Hello Arjan

Please specify two lines

*
+nl.mycompanyname.xyz.module.*

and restart the profiled application.

Best regards,
Anton
ajvdberg
Posts: 4
Joined: Fri Jul 09, 2021 1:02 pm

Re: Trace with limited scope , profile only one package

Post by ajvdberg »

Hi Anton,

Thanks for all details ! It works now as expected

Regards,
Arjan
Post Reply