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.
In more detail
Wide bars show where the time actually goes, and the stacking shows which calls led there. Profilers for many languages produce them, and clicking a bar usually zooms into that part of the call tree.
Example
In the React DevTools Profiler each commit has its own flame graph, coloured from grey (did not render) through yellow (slowest).Related terms
- CPU profile — A recording of where a program spent its CPU time, made by sampling the call stack many times per second.
- hot path — Code that runs very often, such as on every request, where small costs add up.
- React DevTools — A browser extension from the React team that shows the component tree with its props, state and hooks, and records rendering performance.
- Profiler — A React component, and a React DevTools tab, that measures how often and how long parts of the tree render.
- ranked chart — A React DevTools Profiler view that lists the components of one commit ordered by how long each took to render.
Taught in
- Diagnostic Profiling: CPU Profiler & Heap Snapshots — Node.js Internals & Backend Services
- Render Diagnostics: Profiling Re-Renders with React DevTools — React 19 & Modern Component Architecture