react-profiler-cpu-summary
Investigate CPU hotspots unrelated to React rendering. After stopping the profiler, returns a table of top functions by self-time to pinpoint performance bottlenecks like regex or heavy computations.
Instructions
Return a raw Hermes CPU flamegraph summary (top hotspot functions by self-time). FOR DEDICATED CPU INVESTIGATION ONLY — do NOT call this as part of a normal profiling session. Use react-profiler-analyze instead; it covers all React rendering performance analysis. Use when you specifically need to investigate JS CPU hotspots that are NOT tied to React rendering (e.g. regex slowness, cryptography, heavy computations). Call react-profiler-stop first. Reads directly from the stored cpuProfile. Returns a markdown table of the top hotspot functions with self-time, total-time, and location. Fails if react-profiler-stop has not been called or no CPU profile is stored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Metro server port. Optional — omit it to use this device's port, 8081 by default. Ignored for Chromium, whose CDP port is encoded in device_id. | |
| top_n | No | Number of top hotspot functions to return (default 20) | |
| device_id | Yes | Device logicalDeviceId from debugger-connect (iOS simulator UDID or Android logicalDeviceId). | |
| react_only | No | If true, only show React component functions (PascalCase names) |