What do the "large method" entries in the log mean

Questions about YourKit Java Profiler
Locked
sappling
Posts: 1
Joined: Wed Feb 22, 2023 10:07 pm

What do the "large method" entries in the log mean

Post by sappling »

I see messages like:
tracing=off: large method: 7992...

in the Start logs, but can't find anything explaining what they mean. Does the tracing=off indicate that these methods are not being profiled? If so, is there a way to include them?
Vladimir Kondratyev
Posts: 1619
Joined: Tue Aug 10, 2004 7:52 pm

Re: What do the "large method" entries in the log mean

Post by Vladimir Kondratyev »

"large" methods are the methods which cannot be instrumented, because their bytecode size will be larger after the instrumentation than maximum allowed limit.

These methods are skipped from the bytecode instrumentation.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
alibjYK
Posts: 1
Joined: Thu Jan 25, 2024 6:55 pm

Re: What do the "large method" entries in the log mean

Post by alibjYK »

Does the number suggest the size of the bytes of the method? I have over 800 of these messages and some of the methods in the Java file do not seem very large. Is there any way to increase the max size allowed to include some of the smaller methods (2049)?
Vladimir Kondratyev
Posts: 1619
Joined: Tue Aug 10, 2004 7:52 pm

Re: What do the "large method" entries in the log mean

Post by Vladimir Kondratyev »

Does the number suggest the size of the bytes of the method? I have over 800 of these messages and some of the methods in the Java file do not seem very large.
Please send a .class file containing the method that generates the warning to [email protected]
Is there any way to increase the max size allowed to include some of the smaller methods (2049)?
No, the size of the method's bytecode is constrained by the JVM.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Vladimir Kondratyev
Posts: 1619
Joined: Tue Aug 10, 2004 7:52 pm

Re: What do the "large method" entries in the log mean

Post by Vladimir Kondratyev »

I am closing this issue due to the lack of response.

Best regards,
Vladimir Kondratyev
YourKit GmbH
http://www.yourkit.com
"Don't get lost in data, get information!"
Locked