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).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sample_cpu"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | No | ||
| device | No | ||
| duration_s | No |