How to Build a JVM-Embedded Profiler That Survives AOT Compilation
summary
Explains building an in-JVM profiler that works with AOT-compiled Java apps (specifically for Excelsior JET) across multiple OSes and architectures without recompiling the app. Covers existing Java profiling techniques and their suitability for AOT, what internal JVM capabilities can be used for profiling, and the trade-offs and costs paid to achieve a universal, in-process profiler.
AI-written summary · about
chapters (17)
- 0:00JVM embedded profiling intro
- 1:03Excelsior JET AOT basics
- 4:38JIT vs AOT profiling trade-offs
- 7:30Universal profiler requirements
- 10:38Instrumentation limits
- 18:27Sampling safepoints drawbacks
- 23:47OSR getCallTrace issues
- 27:43Prime profiler design
- 38:19Hardware counters approach
- 43:18Hybrid profiler strategy
- 44:44Live demo results
- 48:25Q&A
- 51:16Q&A profiles updates
- 53:03Q&A hardware counters
- 54:52Q&A thread filtering
- 56:14Q&A lightweight methods
- 58:00Q&A AOT vs JIT balance
