~/talk

Debugging js-ipfs and js-libp2p Like a Pro

Talkat IPFS Camp 2022 · 2022-10-28..10-30· [javascript, networking]
links:none on file
slides:none on file

Shows exact debugging steps: enable logging with DEBUG patterns, attach a debugger via SIGUSR1 attach or Node inspect, and collect CPU profiles while running with ipfs_monitoring=true. Uses Prometheus + Grafana for time-series and a Chrome inspector CPU profiler to trace hotspots. A slow regex in multiaddr parsing consumes up to 9.75% CPU on heavy nodes; replacing it with a Rust-derived parser yields a 30–300× speedup and the merged PR fixes the startup spike.

AI-written summary · about

  1. 0:00Introduction to debugging
  2. 2:13Meet the speaker and tools
  3. 3:36Enabling debug logging
  4. 6:06Using Node.js debugger
  5. 9:55Debugging running processes
  6. 11:19Metrics with Prometheus
  7. 18:42CPU profiling analysis
  8. 23:00Finding slow regex in code
  9. 24:23Fixing performance bottleneck
  10. 25:46Q&A and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.