~/talk

Performance Bugs and Low-level Ruby Observability APIs

Talkat RubyKaigi 2025 · 2025-04-16..04-18· [ruby]
slides:none on file

Explains how Ruby C APIs produce concrete tools: a published low-level toolkit gem shows C examples for track_objects_created (captures allocations but must filter internal and hidden objects), uses the postpone job API to safely call Ruby from low-level callbacks (32 slots total, effectively 31), exposes frame profiling and debug inspector for cheap backtraces and mutable bindings, and implements a 107‑line release JVL profiler that finds per-thread JVL waits (example threads wait ~1.88s each, directory reads release JVL 180 times)

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 6:46Ruby observability APIs overview
  3. 11:21Tracking object allocation with trace points
  4. 16:25Garbage collection event monitoring
  5. 21:29Postpone job APIs for safe execution
  6. 27:50Frame profiling for back traces
  7. 33:08Debug inspector for deep introspection
  8. 37:20Global VM lock instrumentation
  9. 44:01Building a release JVL profiler
  10. 51:08Performance bugs and next steps
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.