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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "profile_swiftui"
}
}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) |