~/workshop

Workshop: How to use flamegraphs to find performance problems

Workshopat RubyConf 2021 · 2021-11-08..11-10· [web-performance, developer-experience]
slides:none on file

Workshop shows how to use Rack Mini Profiler to generate flamegraph visuals, how to read patterns (loops, big horizontal chunks, garbage collection, dependency calls) and how to turn that data into fixes. Example finds a method called 176 times that returns identical results and is sped up by memoizing the result, with before/after flamegraphs and local load tests (ab bench) used to prove impact. New renderer Speedscope renderer and export/import JSON options are demonstrated.

AI-written summary · about

  1. 0:00Start
  2. 1:28Server Costs
  3. 2:03Why We Need To Profile Applications
  4. 3:11Tools
  5. 3:55Common Ruby Profilers
  6. 5:05Prioritizing Areas To Speed Up
  7. 14:05Flame Graph Tool
  8. 15:45Identify the Patterns in a Flame Graph
  9. 17:17Garbage Collection
  10. 21:33Worked Example
  11. 24:22Load Testing
  12. 29:29Site Reliability
  13. 31:14Reactive Work
  14. 36:06Marginal Gains
  15. 36:50Flame Graphs Detail Section
  16. 37:11Why Do We Need Flame Graphs
  17. 40:01Icicle Charts
  18. 41:29Reading Flame Graphs
  19. 43:09Differences between Speed Scope and the Old Renderer
  20. 44:19Left Heavy View
  21. 44:51Sandwich View
  22. 45:05Export and Import
  23. 46:18Recap
  24. 48:03Stress Testing
~/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.