The ZJIT team (Ruby's new JIT compiler) integrated Perfetto tracing to visualize and analyze JIT side-exits — moments when compiled code falls back to the interpreter. The post explains why side-exits matter for performance, shows how --zjit-stats provides aggregate counters but lacks spatial/temporal context, and demonstrates
Table of contents
The rulesLies, damned lies, and statisticsBuilding intuitionA look at PerfettoImplementationTracing more thingsConclusionSort: