profiler-commit-query
Query React commit data to investigate render performance by component, time range, individual commit, or parent-child cascade tree.
Instructions
Query React commit data for iterative investigation of render performance. Requires react-profiler-stop to have been called first. Modes:
by_component: All commits where a specific component rendered, with causes and durations.
by_time_range: What happened in a specific time window.
by_index: Full detail dump of a single commit (all components, props changed, parent cascade).
cascade_tree: Parent-child cascade tree for a commit showing who triggered whom. Use when drilling into specific components or time windows after react-profiler-analyze. Returns a markdown table or tree of commit data matching the requested mode. Fails if react-profiler-stop has not been called or no commit data is stored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Query mode: by_component (commits for a component), by_time_range (commits in a window), by_index (full detail for one commit), cascade_tree (parent-child cascade for a commit) | |
| port | No | Metro server port | |
| top_n | No | Max results to return (default 20) | |
| device_id | Yes | Device logicalDeviceId from debugger-connect (iOS simulator UDID or Android logicalDeviceId). | |
| commit_index | No | Commit index for by_index and cascade_tree modes | |
| time_range_ms | No | Time range filter for by_time_range mode | |
| component_name | No | Component name for by_component mode |