JarScan

chriswhocodes edited this page Nov 4, 2014 · 1 revision

What is the JarScan tool?

JarScan is a program included in the JITWatch source tree that statically analyses a jar file and counts the bytes in each method's bytecode.

It produces a CSV format report of the class, method signature, and bytecode size for each method that is above the 325 byte threshold for inlining hot methods (-XX:FreqInlineSize=n).

This report can be used to find methods that the HotSpot JIT compiler considers "hot" but were too big to be inlined into their caller. This information can be used to refactor hot methods into smaller sub-units of code that could potentially be inlined for greater performance.

The JarScan tool is launched via the included shell script jarScan.sh

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.