~/talk

Debugging Performance

Talkat PyCon US 2021 · 2021-05-14..05-15· [web-performance, developer-experience]
links:none on file
links:none on file
slides:none on file

Profile-driven debugging of a Django app uses Blackfire probe+agent+browser companion to collect wall/cpu/io/memory dimensions, shows a model initializer called 6812 times, and surfaces a custom filter that loads every comment to count recent ones. Replacing that with a count query instead of loading all comments and then caching per-user status removes repeated work, removed 27 SQL queries, and drops page wall time from several seconds down to about 580 ms, with lower CPU and memory.

AI-written summary · about

  1. 0:00Start
  2. 1:05Tracing and Sampling Profilers
  3. 2:51Pi Spy
  4. 3:10Trace Monologue
  5. 5:42The Agent
  6. 6:31Browser Extension
  7. 10:25Profile Summary
  8. 19:39Call Graph
  9. 20:36The Call Graph
  10. 21:41Critical Path
  11. 32:11Sql Queries
  12. 34:01Blackfire Recommendations
  13. 39:09Leverage Caching
  14. 41:25Premature Optimizations
  15. 41:44Guidelines for Debugging and Fixing Performance Issues
~/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.