What’s happening in your Rails app? Introduction to Introspection features of Ruby
summary
Ruby MRI introspection reveals concrete fixes not vague advice: use allocation_tracer and GC tracing to see which lines create thousands of objects, use TracePoint hooks and binding_of_caller–style inspection to dump local values at exceptions, and tune GC after measuring total allocated objects and object lifetimes. A demonstration app runs on Heroku with both tracers enabled (it gets slower but produces useful traces), and a case shows keywordless method dispatch was ~30× slower then improved to ~15× slower.
AI-written summary · about
chapters (5)
- 0:00Start
- 11:18Existing Tools
- 12:09Performance Issue How To Overcome
- 15:38Memory Consumption
- 17:02Generational Garbage Collection








