~/talk

Plugging Memory Leaks With The Chrome Dev Tools

Talkat UtahJS Conf 2017 · on Wednesday, 2017-09-27· [web-performance, web-platform]
name:Ben Dilts
links:none on file
slides:none on file

Chrome DevTools heap snapshots plus allocation timeline and allocation profiles locate retained objects, where event listeners left on the window and unremoved game bullets keep four game instances alive. An asteroids demo intentionally inflates objects with 100k integers to show the trace, and a real Lucidchart case shows temporary allocations of up to 3.5 GB during load (final heap a few hundred MB) that cause GC thrashing. Production telemetry across ~500k sessions shows ~1 MB per minute average heap growth before fixes.

AI-written summary · about

  1. 0:00Introduction
  2. 2:20Garbage Collection Review
  3. 3:43Memory Leaks Explained
  4. 7:52Example Application
  5. 9:26Performance Tab
  6. 10:43Heap Snapshot
  7. 17:32Snapshot Comparison
  8. 18:54Allocation Timeline
  9. 19:52Whats Left
  10. 21:16The Healthy Pattern
  11. 25:58The Healthy Memory Graph
  12. 27:13Memory Allocation
  13. 35:31JS Profiler
  14. 38:41Performance Data
  15. 45:01Event Handlers
  16. 47:01Memory Management
  17. 49:16Anonymous Functions
  18. 50:41Source Maps
~/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.