Debugging Ruby
summary
Shows exact tooling and outcomes: uses perf tools sampling profiler (38 samples with 4 in GC) and RubyProf for call-level hotspots, ports MPR/mov to 1.9 to pinpoint leaking lines, and uses GDB.rb and rbtrace to inspect live processes. Demonstrates GC profiler output with 53 GCs and object counts climbing toward ~2 million, uses m.dump to JSON for a web visualizer, and shows where allocations (file and line) produce the leak so fixes can be targeted.
AI-written summary · about
chapters (13)
- 0:00Introduction to profiling
- 1:00Debugging Ruby crashes
- 2:27Importance of profiling tools
- 4:45CPU profiling tools overview
- 7:15Using perftools.rb
- 15:15Using Ruby Prof
- 20:35LL Prof tool
- 21:55Memory profiling intro
- 23:45GC profiling in Ruby 1.9
- 28:45MPR for memory leaks
- 35:00Dumping heap data
- 37:40Debugging live processes
- 40:30Alternative tools and conclusion
related talks
53mRuby.inspect
36mDebugging Ruby
28mTracing your way through Ruby
37mThe Future of Ruby Performance Tooling
24mRuby Performance Secrets and How to Uncover Them
31mPeeking into Ruby: Tracing Running Code
38mPractical Debugging
37mWhat’s happening in your Rails app? Introduction to Introspection features of Ruby
