swaps-cpu-profile-audit
Swaps CPU Profile Audit
Turns a captured Hermes CPU profile into a performance audit of the
swaps/bridge experience: which frames actually burned time in the capture,
which surface they belong to (main screen, quote select, post-trade, batch
sell, asset picker, ...), whether the swaps team owns them, and what to
change. This skill owns the profile-parsing protocol, the swaps-tree area
map, and the ownership/relation classification; the fix recipes themselves
live in the performance skill, and the live on-device measurement
counterpart is swaps-perf-audit.
Auditing only swaps-owned files misses a whole class of real regressions: a
capture taken on the swaps screen can be dominated by a slow navigator
transition, a re-rendering provider, an unmemoized shared selector, or a
polling controller — none of it under app/components/UI/Bridge/**, all of
it felt by the user as "swaps is slow". So the analyzer classifies every
frame in the capture, and the report names the non-swaps contributors instead
of dropping them.