~/talk

Profiling Node Applications

slides:none on file

V8’s built-in profiler via --prof produces gigabytes of logs, only samples the main thread, and points to pbkdf2 using ~90% CPU in one example; perf attaches live, samples at ~97 Hz and requires node to emit address maps to avoid 18,000-line reports; BPF/bcc runs in-kernel aggregation (needs ~Linux 4.1), produces flame graphs without huge disk writes, and finds off-CPU hotspots like synchronous file closes that cause 35% CPU but 90th-percentile latencies ~200 ms. perf USDT probes

AI-written summary · about

  1. 0:00Start
  2. 1:14Tools And Operating Systems Supported
  3. 1:36Demo: The V8 Profiler
  4. 5:39Demo: CPU Profiling With perf
  5. 11:11Flame Graphs
  6. 11:56Demo: Generating A Flame Graph
  7. 13:55What's Wrong With perf?
  8. 16:21The BCC BPF Front-End
  9. 17:16Demo: CPU Profiling With BCC
  10. 19:38Demo: Off-CPU Profiling With BCC
  11. 24:25USDT Probes in (Some) High-Level Languages
  12. 25:18Demo: Node.js Observability Points
  13. 27:06Demo: Identifying Excessive GC
  14. 28:07References
~/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.