~/talk

Profiling Node Applications

Talkat NDC Sydney 2017 · 2017-08-14..08-18· [nodejs, web-performance]
slides:none on file

Profiling Node in production distinguishes concrete root causes: V8’s --prof requires starting Node with a flag, while perf can attach live but needs a perf map; BCC/BPF aggregates in-kernel so you avoid huge logs (the demo shows ~19 MB/s of perf output). Concrete findings include a hotspot where pbkdf2_sync consumes ~93.5% of C++ time and raises median latency to ~1.1s, and a writeFileSync that blocks the event loop revealed by off‑CPU flame graphs.

AI-written summary · about

  1. 0:00Start
  2. 3:32A Mind The Overhead
  3. 4:44Sampling vs. Tracing
  4. 5:56Tools And Operating Systems Supported
  5. 6:54Demo: The V8 Profiler
  6. 24:48Flame Graphs
  7. 25:23Reading a Flame Graph
  8. 28:39Demo: Generating A Flame Graph
  9. 29:38What's Wrong With perf?
  10. 37:52Demo: Off-CPU Profiling With BCC
  11. 48:37Demo: Identifying Excessive GC
~/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.