Recording a Profile: Start, Interact, Stop
You'll learn the fundamental workflow for capturing performance data in React DevTools Profiler.
The Three-Step Performance Capture Workflow
Recording a profile follows a simple but deliberate sequence:
- Start Recording - Click the record button (red circle) in the Profiler tab before doing anything
- Interact - Perform the specific user actions you want to analyze (click buttons, type in inputs, navigate routes)
- Stop Recording - Click the record button again to stop and generate the flame graph
Think of it like recording a video: you press record, perform your scene, then press stop. The Profiler captures every React render that occurs during that window, showing you exactly what happened when you clicked that slow-loading button or typed in that laggy search field.
Why This Workflow Matters
The key insight is intentionality. You don't want to record everything all the time—that creates overwhelming noise. Instead, you isolate the specific interaction you suspect is slow. For example:
- Testing a form submission? Start recording, fill the form, submit, then stop.
- Debugging slow list filtering? Start recording, type in the filter input, then stop.
- Investigating route transitions? Start recording, navigate to the new page, then stop.
This focused approach gives you a clean recording showing only the renders triggered by that specific interaction, making it far easier to spot the problematic components.
Practical Recording Strategy
Start small. Record a single button click first. Examine the results. Then record more complex flows. This builds your intuition for what "normal" vs "problematic" render patterns look like in the flame graph.
Key Takeaway: The Start → Interact → Stop workflow is your foundation for performance debugging—record targeted interactions to capture clean, analyzable render data without overwhelming noise.