Towards Realistic Results for Instrumentation-Based Profilers for JIT-Compiled Systems
Profilers are crucial tools for identifying and improving ap-
plication performance. However, for language implementa-
tions with just-in-time (JIT) compilation, e.g., for Java and
JavaScript, instrumentation-based profilers can have signifi-
cant overheads and report unrealistic results caused by the
instrumentation.
In this paper, we examine state-of-the-art instrumentation-
based profilers for Java to determine the realism of their
results. We assess their overhead, the effect on compilation
time, and the generated bytecode. We found that the pro-
filer with the lowest overhead increased run time by 82×.
Additionally, we investigate the realism of results by test-
ing a profiler’s ability to detect whether inlining is enabled,
which is an important compiler optimization. Our results
document that instrumentation can alter program behavior
so that performance observations are unrealistic, i.e., they do
not reflect the performance of the uninstrumented program.
As a solution, we sketch late-compiler-phase-based in-
strumentation for just-in-time compilers, which gives us the
precision of instrumentation-based profiling with an over-
head that is multiple magnitudes lower than that of standard
instrumentation-based profilers, with a median overhead
of 23.3% (min. 1.4%, max. 464%). By inserting probes late in
the compilation process, we avoid interfering with compiler
optimizations, which yields more realistic results.
Thu 19 SepDisplayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change
15:30 - 16:50 | |||
15:30 15mShort-paper | Towards Realistic Results for Instrumentation-Based Profilers for JIT-Compiled Systems MPLR A: Humphrey Burchell University of Kent, A: Octave Larose University of Kent, A: Stefan Marr University of Kent DOI Pre-print | ||
15:45 15mShort-paper | Toward Declarative Auditing of Java Software for Graceful Exception Handling MPLR DOI | ||
16:00 25mPaper | Dynamic Possible Source Count Analysis for Data Leakage Prevention MPLR A: Eri Ogawa University of Tokyo; IBM Research, A: Tetsuro Yamazaki University of Tokyo, A: Ryota Shioya University of Tokyo DOI | ||
16:25 25mPaper | The Cost of Profiling in the HotSpot Virtual Machine MPLR A: Rene Mueller Huawei Zurich Research Center, A: Maria Carpen-Amarie Huawei Zurich Research Center, A: Matvii Aslandukov Kharkiv National University of Radio Electronics, A: Konstantinos Tovletoglou Independent Researcher DOI | ||
16:50 5mDay closing | Closing Session MPLR Stefan Marr University of Kent |