Profile renders
profile_rendersCounts React re-renders during a profiling window, listing which components rendered, how often, how long they took, and which update started each commit.
Instructions
Count React re-renders over a window: which components rendered, how many times, how long they spent, and which update started each commit. Installs a switchable hook on the React DevTools global hook (dev builds only) that prunes untouched subtrees, so it costs roughly what the commits cost rather than what the tree costs. Nothing re-renders on its own — drive the app during the window, which usually means background: true plus tap/swipe, then get_job to collect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | How many components to list by render count (default 15). | |
| label | No | Name for the background job, shown by get_job. | |
| background | No | Start profiling and return a job id immediately, so you can drive the app while it runs. | |
| duration_ms | No | How long to profile (default 5000, max 60000). |