~/talk

Profiling JavaScript Like A Pro

Talkat Developers Summit 2021 · 2021-02-18..02-19· [javascript, web-performance]
slides:none on file

Browser rendering runs at 60fps (≈16ms per frame) with ~5–6ms browser overhead leaving ~10ms of work; the pixel pipeline is JavaScript → style → layout → paint → composite and a reflow runs the whole pipeline while a repaint skips layout. Profiling with Chrome DevTools Performance and Memory tabs plus the performance monitor finds hotspots (example: a costly decimalToHex routine uses 31% and 1.7s, changed to CSS rgb and removed console.log drops load to 158ms), change detection to onPush change detection cuts 100ms components to 0.2ms, heap snapshots and allocation timelines (and node --inspect / heapdump, autocon load testing) locate leaks like a duplicated 20MB object fixed by a single shared service.

AI-written summary · about

  1. 0:00Introduction to profiling
  2. 1:50Browser rendering pipeline
  3. 8:33RAIL performance model
  4. 10:41Chrome DevTools profiling
  5. 17:29Profiling workflow steps
  6. 25:04Memory leaks overview
  7. 27:59How memory allocation works
  8. 31:32Garbage collection algorithms
  9. 34:05JavaScript memory leak pitfalls
  10. 35:10Detecting memory leaks in browser
  11. 42:42Node.js memory leak detection
  12. 48:31Production monitoring tips
  13. 49:36Q&A session
~/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.