The V8 JavaScript engine used in Node.js contains two super-useful instrumentation facilities - CPU profiling and heap snapshots. CPU profiles show you where your program is spending its time, on a per-function basis. Heap snapshots show you where your program is spending its memory, on a per-object basis.

Using these tools can shine some light into the otherwise black box that is the Node.js runtime.

TOPICS COVERED
  • Define what CPU profiling and heap snapshots are
  • Share what insights are provided into your applications with profiling tools
  • Show how to obtain profiles from the v8-profiler package at npm, and with the N|Solid product from NodeSource.

Watch the Recording