analyze_build_time
Analyze Xcode build times from DerivedData logs to identify slow files and modules; fall back to static complexity analysis when build logs are unavailable.
Instructions
Analyze Xcode build times from DerivedData build logs. Shows slowest files and modules. Falls back to static complexity analysis if no build logs are found.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectPath": "<projectPath>"
},
"name": "analyze_build_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topN | No | Number of top slow files to show (default: 20) | |
| scheme | No | Xcode scheme name to match in DerivedData | |
| projectPath | Yes | Path to the Xcode project root directory | |
| thresholdMs | No | Only show files taking longer than this (ms, default: 0) | |
| derivedDataPath | No | Custom DerivedData path (default: ~/Library/Developer/Xcode/DerivedData) |