- All Courses
- React Performance Engineering
- Measuring Before You Optimize
- Profiling with React DevTools
Profiling with React DevTools
The profiler records every commit during an interaction and shows how long each component took to render.
Overview
Start with a recording, not a theory
The profiler records every commit during an interaction and shows how long each component took to render. That is the difference between knowing a page is slow and knowing which subtree is responsible for it.
Work interaction by interaction. Record one action — a keystroke, a filter change — and look at the commits it produced. A profile of a whole session averages away the spike you are hunting.
The re-render highlight is the fastest first signal: if half the screen flashes when you type one character, you have found your problem before opening a single trace.
In this lesson you will:
- Record a profile of a slow interaction
- Find the components that dominate a commit
- Use the highlight setting to see re-renders live
Resources
Notes are not saved yet — they clear when you leave this page.
Core Web Vitals in the field
15m