~/talk

DIY::Thread.profile -- Light-Weight Profiling in Pure Ruby

Talkat MountainWest RubyConf 2013 · 2013-04-03..04-05· [ruby, web-performance]
slides:none on file

Builds a light-weight sampling profiler in pure Ruby using the Thread APIs (notably thread.list and backtrace), running roughly 10 samples per second and aggregating counts into a call tree; measured overhead averages 1.7 milliseconds per sample so short production runs (2–15 minutes) are viable. It works but has gotchas: sampling favors IO over CPU, memory grows with retained trees, MRI 1.9.x and JRuby backtraces are flaky, and millisecond-scale tasks may be missed.

AI-written summary · about

  1. 0:00Introduction
  2. 1:45Profiling Methods
  3. 5:43Building the Profiler
  4. 12:33Sample Application
~/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.