Sample CPU by thread
sample_cpuProfiles a running app's threads for a few seconds and reports which one is hot - UI/main, JS, or other. Use it to find CPU-heavy threads during React Native debugging.
Instructions
Profile the running app's threads for a few seconds and report which one is hot — the UI/main thread, the JS thread, or something else. iOS simulator: macOS sample, with native call-graph frames. Android: top -H, per-thread %CPU only (no frames).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | No | ||
| device | No | ||
| duration_s | No |