CPU profile
A recording of where a program spent its CPU time, made by sampling the call stack many times per second.
In more detail
Functions that appear in many samples are the hot spots. Profiles are usually viewed as call trees or flame graphs.
Related terms
- flame graph — A chart of profiling data in which each bar is a function or component, its width shows how much time it took, and its position shows what called it.
- hot path — Code that runs very often, such as on every request, where small costs add up.
- node:inspector — The Node.js module and debugging interface that speaks the Chrome DevTools Protocol, for attaching debuggers and profilers.
Taught in
- Diagnostic Profiling: CPU Profiler & Heap Snapshots — Node.js Internals & Backend Services