Skip to content

Commit 3e6aaeb

Browse files
authored
Add a note about disabling extensions when profiling (#528)
1 parent 0ea1e05 commit 3e6aaeb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

content/docs/optimizing-performance.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,17 @@ In the **development** mode, you can visualize how components mount, update, and
164164

165165
To do this in Chrome:
166166

167-
1. Make sure you're running the application in the development mode.
167+
1. Temporarily **disable all Chrome extensions, especially React DevTools**. They can significantly skew the results!
168168

169-
2. Open the Chrome DevTools **[Performance](https://developers.google.com/web/tools/chrome-devtools/evaluate-performance/timeline-tool)** tab and press **Record**.
169+
2. Make sure you're running the application in the development mode.
170170

171-
3. Perform the actions you want to profile. Don't record more than 20 seconds or Chrome might hang.
171+
3. Open the Chrome DevTools **[Performance](https://developers.google.com/web/tools/chrome-devtools/evaluate-performance/timeline-tool)** tab and press **Record**.
172172

173-
4. Stop recording.
173+
4. Perform the actions you want to profile. Don't record more than 20 seconds or Chrome might hang.
174174

175-
5. React events will be grouped under the **User Timing** label.
175+
5. Stop recording.
176+
177+
6. React events will be grouped under the **User Timing** label.
176178

177179
For a more detailed walkthrough, check out [this article by Ben Schwarz](https://building.calibreapp.com/debugging-react-performance-with-react-16-and-chrome-devtools-c90698a522ad).
178180

0 commit comments

Comments
 (0)