~/talk

Knocking On A Process’s Door: Introspecting Live Python Processes

Talkat PyCon AU 2026 · 2026-08-26..08-30· [python, observability]
speakerdeck:rtpg
slides:none on file

Live Python processes get inspected not by vague examples but by concrete tools and demos: cProfile plus flame graphs via snakeviz to show 168s total with 139s in get_some_data and 38% of time in a sleep call; a Bloomberg memory tool and objgraph to spot 45 leaked listings held in an LRU cache; external inspection with PiSpy to dump threads; and a remote-exec demo that patches update_life so increases become +2, proving hot patching works (with the usual risks).

AI-written summary · about

  1. 0:00Live Python introspection
  2. 1:51Why introspect a process
  3. 2:35Program self-measurement
  4. 5:24Profiling Django endpoints
  5. 8:53Tracking memory with objsize
  6. 11:01Debugging Python leaks
  7. 14:31Generalizing memory tools
  8. 17:40Forcing program explanation
  9. 19:08Inspecting with Pispy
  10. 20:30Changing running code
  11. 22:15Patching live card game
  12. 25:23Accessible Python tools
  13. 26:48Key takeaways
~/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.