Overview
Build Insights captures detailed telemetry from every build:Build Performance
Duration, file compilation, and target metrics
Cache Efficiency
Hit rates, latency, and storage analysis
Team Trends
Productivity tracking and historical comparisons
All build data is automatically collected when you run
tuist build or tuist test while authenticated with Tuist Cloud.Key Metrics
Build Duration
What it measures
What it measures
Total time from build start to completion, including:
- Dependency resolution
- Source compilation
- Linking
- Resource processing
- Cache operations
- Track build performance trends
- Measure impact of caching improvements
- Compare build times across branches
- Identify performance regressions
Compilation Performance
What it measures
What it measures
Individual file and target compilation times:
- Swift compilation
- Objective-C/C compilation
- Per-file duration
- Slowest files and targets
- Find slow-compiling files
- Optimize problematic code
- Identify complex type inference
- Track compilation improvements
Cache Metrics
What it measures
What it measures
Binary cache performance:
- Cache hit rate (local + remote)
- Cache read/write latency
- Bandwidth usage
- Storage efficiency
- Validate caching is working
- Measure cache impact on build time
- Identify cache performance issues
- Optimize cache strategy
Build Issues
What it measures
What it measures
Warnings and errors during builds:
- Error types and frequency
- Warning signatures
- Affected targets
- Issue trends
- Track technical debt
- Monitor warning reduction goals
- Identify recurring problems
- Prioritize fixes
Dashboard Views
Overview
Get a high-level summary of your project’s build health:Build Timeline
Visualize build duration trends over time:- Daily averages - Spot performance changes
- Success/failure rates - Track reliability
- Configuration breakdown - Debug vs Release
- Branch comparison - Feature vs main
Compilation Analysis
Drill into compilation performance:- Slowest Files
- Slowest Targets
- File Types
| File | Target | Duration |
|---|---|---|
| NetworkManager.swift | Core | 8.2s |
| UserViewModel.swift | Features | 6.5s |
| APIClient.swift | Core | 5.8s |
Cache Performance
Analyze cache effectiveness:Hit Rates
- Local hits: Artifacts found in local cache
- Remote hits: Downloaded from Tuist Cloud
- Misses: Required full rebuild
Latency
Read and write performance:
- P50, P90, P99 latencies
- Cache operation duration
- Network bandwidth usage
Build Comparison
Compare builds to measure improvements:Before/After Optimization
| Metric | Before | After | Change |
|---|---|---|---|
| Duration | 5m 23s | 2m 18s | 🚀 -57% |
| Cache Hits | 45% | 89% | ↑ +44% |
| Compiled Files | 315 | 34 | ↓ -89% |
Branch Comparison
Compare feature branch builds against main:- Build time regression detection
- Cache performance changes
- New warnings introduced
- Compilation overhead
Custom Analytics
Tags and Labels
Organize builds with custom metadata:CI Provider Integration
Automatic CI metadata capture:- GitHub Actions - Workflow, run ID, PR number
- GitLab CI - Pipeline ID, job name
- Bitrise - Build slug, branch
- CircleCI - Build number, workflow ID
- Buildkite - Build ID, agent
- Codemagic - Build ID, workflow
Custom Values
Track project-specific metrics:Alerts and Notifications
Performance Degradation
Get notified when builds slow down:- Threshold alerts - Build time exceeds X minutes
- Regression detection - 20%+ slower than baseline
- Cache hit rate drops - Below target percentage
Build Failures
Track build reliability:- Failure rate increases - More than X% failures
- Recurring errors - Same issue multiple times
- Flaky builds - Intermittent failures
Configure Alerts
Set up alerts in Tuist Cloud:- Navigate to Project Settings > Insights
- Enable alert types
- Configure thresholds
- Choose notification channels (email, Slack)
API Access
Query insights programmatically:- Build custom dashboards
- Integrate with internal tools
- Export data for analysis
- Create custom alerts
Best Practices
Establish baselines
Establish baselines
- Run builds consistently (same machine, config)
- Track main branch performance
- Measure before/after optimizations
- Document expected build times
Monitor trends
Monitor trends
- Review insights weekly
- Watch for gradual degradation
- Celebrate improvements
- Share metrics with team
Act on data
Act on data
- Fix slowest compilation files
- Improve cache hit rates
- Reduce warnings over time
- Optimize target dependencies
Set goals
Set goals
- Target build time (e.g., under 2 minutes)
- Cache hit rate goal (e.g., 85%+)
- Zero warnings policy
- 99%+ build success rate
Example Optimizations
Reduce Compilation Time
Simplify complex code
- Break up large functions
- Add explicit types
- Reduce generic constraints
- Split complex expressions
Improve Cache Hit Rate
Insights for Teams
Team Productivity
Track team-wide metrics:- Total builds per day - Development activity
- Average build time - Developer experience
- CI vs local builds - Where builds happen
- Peak build hours - Resource planning
Cost Analysis
Understand build infrastructure costs:- CI minutes used - Build time × runs
- Cache storage - Artifact size and retention
- Bandwidth - Cache downloads/uploads
Developer Experience
Measure and improve DX:- Time to first build - Onboarding
- Clean build duration - Worst case
- Incremental build time - Daily workflow
- Cache effectiveness - Build speedup
Data Retention
Build data is retained according to your plan:- Free plan: 30 days
- Team plan: 90 days
- Enterprise plan: Custom retention
Privacy & Security
Next Steps
Binary Caching
Optimize cache usage based on insights
Bundle Size Analysis
Analyze your app’s binary size