dillon1000/react

Commit

[DevTools] hotkey to start/stop profiling (#35160)

## Summary

The built-in browser profiler supports starting/stopping with Cmd+E. For
Symmetry this adds the same hotkey for react devtools profiler.

## How did you test this change?
yarn build:\<browser name\> 
yarn run test:\<browser name\>

<img width="483" height="135" alt="Screenshot 2025-11-17 at 14 30 34"
src="https://github.com/user-attachments/assets/426939aa-15da-4c21-87a4-e949e6949482"
/>

firefox:

https://github.com/user-attachments/assets/6f225b90-828f-4e79-a364-59d6bc942f83

edge:

https://github.com/user-attachments/assets/5b2e9242-f0e8-481b-99a2-2dd78099f3ac

chrome:

https://github.com/user-attachments/assets/790aab02-2867-4499-aec1-e32e38c763f9

---------

Co-authored-by: Ruslan Lesiutin <[email protected]>
Browse files
Changed paths3 files
First-parent comparison
M packages/react-devtools-shared/src/__tests__/profilerContext-test.js ModifiedM packages/react-devtools-shared/src/devtools/views/Profiler/Profiler.js ModifiedM packages/react-devtools-shared/src/devtools/views/Profiler/RecordToggle.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…