Analyze animation hitches from a .trace bundle
analyzeAnimationHitchesParse .trace files from Animation Hitches template to quantify animation hitches: totals, longest hitches, and counts exceeding the 100ms user-perceptible threshold.
Instructions
[mg.trace] Parse the animation-hitches schema from a .trace recorded with the Animation Hitches Instruments template. Returns hitch totals, by-type counts, longest hitches, and how many crossed the user-perceptible 100ms threshold.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tracePath | Yes | Absolute path to a `.trace` bundle recorded with the Animation Hitches template (`xcrun xctrace record --template 'Animation Hitches' --attach <app|pid>`). | |
| topN | No | Return the top N longest hitches in the response (default 10). | |
| minDurationMs | No | Filter out hitches shorter than this duration in milliseconds. Apple categorizes hitches >100ms as user-perceptible — pass 100 to focus on those. |