profile_swiftui
Record and analyze SwiftUI view performance by measuring body evaluation counts, excessive re-renders, and duration. Optionally re-analyze existing trace files.
Instructions
Record and analyze SwiftUI view performance. Returns: View body evaluation counts, excessive re-renders, and duration per view. Best used while navigating through the app. Pass trace_path to re-analyze an existing trace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| process | No | Process name or PID to attach to | |
| launch_path | No | Path to .app bundle to launch | |
| device | No | Device name or UDID | |
| duration | No | Recording duration | 15s |
| trace_path | No | Path to existing .trace file to re-analyze (skips recording) |