Commit b08a87c
docs(performance): recommend the Release Profiler → AI-agent .cpuprofile workflow (#40)
## What
Follow-up to the merged `mobile-performance` skill (#19). Adds a
recommended, validated workflow for root-causing a slow flow on a real /
RC build using the **React Native Release Profiler**, with the resulting
`.cpuprofile` analyzed either visually **or** by an AI coding agent.
### `references/mm-tools.md`
- Rewrote the **Release Profiler** section as clear numbered steps: grab
an RC build → shake → Performance Profiler → Start → run the flow → Stop
→ the `.cpuprofile` saves to Downloads → **analyze two ways:**
- **Visualize the flame graph:** `yarn react-native-release-profiler
--local <file.cpuprofile> [--sourcemap-path <maps>]` → SpeedScope /
`chrome://tracing` / Perfetto.
- **Or let AI read it:** hand the `.cpuprofile` to **Claude Code / your
AI agent of choice** and ask "why is this slow?" — it parses the
sampling profile and names the hot frames, no manual flame-graph
reading.
- Added an **"On an RC build"** decision-tree entry (RC tester / QA / a
flow that's only slow in release) so the profiler isn't gated to
production alerts only.
### `SKILL.md`
- Added a trigger for *analyzing a captured `.cpuprofile` / React Native
Release Profiler trace*, so handing over a profile fires this skill.
Uses `yarn` throughout (no `npx`), consistent with the repo conventions
and the rest of the skill.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent ca00a52 commit b08a87c
2 files changed
Lines changed: 16 additions & 3 deletions
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
113 | 117 | | |
114 | | - | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
182 | 186 | | |
183 | 187 | | |
184 | 188 | | |
185 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
186 | 199 | | |
187 | 200 | | |
188 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
0 commit comments