Demonstrates the programmatic recording of a performance profile from a Chrome extension using the Chrome DevTools Protocol.
This is intended as an initial step towards integrating the React concurrent mode scheduling profiler into the main React DevTools.
Context:
Relevant code located in panel.js.
- Clone this repository.
- In Chrome, navigate to chrome://extensions/.
- Use the "Load unpacked" button to load the cloned repository folder.
- On a new Chrome tab, open Chrome DevTools.
- Navigate to the Scheduling Profiler tab.
- Open a new DevTools window for the Scheduling Profiler tab, and navigate to its Console tab.
- Observe a profile that was recorded when the panel was mounted.
- Click the Profile button to record another 1-second profile. To modify the profile duration, change the timeout duration in panel.js.