Swaps Cpu Profile Audit

Parse an already-recorded Hermes / React Native Release Profiler `.cpuprofile` and audit it for slow frames on the swaps/bridge screen and its modals (quote select, post-trade, batch sell, asset picker). Use when a user hands you a `.cpuprofile` (e.g. `sampling-profiler-trace*.cpuprofile`) and asks to audit, analyze, or explain why the swaps/bridge flow is slow. Offline, file-based analysis — no simulator, device, Metro, or `mm` session required, unlike `swaps-perf-audit` (live render counts on a running simulator). Accounts for ALL time in the capture, not just swaps-owned code: non-swaps frames (navigation, redux, design system, polling controllers, React internals) are reported with swaps ownership and relation to the swaps call stacks. The report leads with a timing table and a short outcome line; a probable-cause/fix table appears only for actual issues. MetaMask Mobile only.

jiayaoqijia Updated 81 repo stars

File contents

jiayaoqijia/cryptoskill commit f3b0d42ac2

Frequently asked questions

npx get-skill add jiayaoqijia/swaps-cpu-profile-audit