~/talk

Tracing your way through Ruby

Talkat Barcelona Ruby Conference 2012 · 2012-09-08..09-09· [ruby]
slides:none on file

When Ruby slows or segfaults the answer is tracing actual events not higher‑level concepts: use perftools.rb, dtrace and instruments to attach to the VM, enable the probes branch that exposes function entry/gc/object/raise probes, aggregate events to find hotspots (one example shows 4883 calls to a single method), histogram GC pauses (most ~0.2s), use dtruss/iosnoop for syscalls, JVM probes for JRuby, and note some illegal‑instruction bugs only disappear after upgrading Ruby — the probes otherwise work.

AI-written summary · about

  1. 0:00Intro
  2. 2:35What is Dtrace
  3. 4:31Probes
  4. 6:10Dtrace
  5. 8:12Dtrace probes
  6. 9:37Printf
  7. 11:10Attach to process
  8. 11:47Local variables
  9. 14:35Aggregate functions
  10. 16:27Other tools
  11. 21:55JRuby
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.