Vernier: A next generation profiler for CRuby
summary
Vernier is an open source Ruby 3.2+ profiler that records time and memory in a single artifact and opens in a Firefox‑profiler based web viewer. It combines 1 ms sampling with selective tracing to record GC events, user timings and allocations, uses a C‑side stack table to deduplicate stacks without allocating Ruby objects, and runs a C thread to avoid missed samples. Live examples include finding a string.split hotspot that made ~1,000,000 allocations and sped bundler from ~6s to ~5s after a fix. It surfaces allocations+timings and GVL-aware sampling so production servers can be toggled by signal and show true GVL contention across threads.
AI-written summary · about
chapters (11)
- 0:00Introduction to Verer
- 1:03Visualizing profiles
- 2:34Feature set and usage
- 4:46Performance optimization
- 6:07Memory profiling evolution
- 10:07Tracing vs. sampling
- 12:26Instrumentation approach
- 15:49GVL instrumentation
- 18:21Sampling and thread handling
- 23:57Production use cases
- 29:01Conclusion








