Browser DevTools Performance Tab
You'll learn how to record and interpret flame graphs, call trees, and frame rates using Chrome or Firefox DevTools to diagnose real performance bottlenecks.
What Is the Performance Tab?
The Performance tab (or Profiler in some browsers) is a visual timeline recorder that captures everything your browser does during a recording session: JavaScript execution, rendering, painting, and idle time. Unlike the timing methods you've learned (console.time, performance.now, performance.mark), the Performance tab shows you where time is spent across the entire rendering pipeline.
Think of it as a medical scan for your web application—it reveals the internal workings frame-by-frame.
Recording a Profile
- Open DevTools (F12) and click the Performance tab
- Click the record button (circle icon)
- Interact with your page (scroll, click, trigger animations)
- Click stop to end recording
The tab generates three key visualizations:
Flame Graph
A visual representation where each horizontal bar is a function call. Wider bars = longer execution. Functions are stacked vertically to show the call stack. The "flames" point upward—the wider the base, the more expensive that function tree.
Call Tree
A hierarchical breakdown showing which functions consumed the most time. It's sorted by "self time" (time spent in that function alone) or "total time" (including children).
Frame Rate (FPS)
Green bars above the timeline indicate smooth 60fps. Red bars show dropped frames—visual stuttering your users experience.
What to Look For
Search for wide flame graph sections, long-running functions in the call tree, or red frame drops during interactions. These pinpoint where your performance budget is spent.
Key Takeaway: The Performance tab transforms abstract timing numbers into visual flame graphs and call trees, letting you see exactly which functions cause slowdowns and dropped frames.