wheels analyze performance
Analyzes application performance, identifying bottlenecks and optimization opportunities in your Wheels application.
Usage
Parameters
--target
- (Optional) Analysis target:all
,controller
,view
,query
,memory
. Default:all
--duration
- (Optional) Duration to run analysis in seconds. Default:30
--report
- (Optional) Generate HTML performance report--threshold
- (Optional) Performance threshold in milliseconds. Default:100
--profile
- (Optional) Enable profiling mode
Description
The analyze performance
command profiles your Wheels application to identify performance bottlenecks and provide optimization recommendations. It monitors:
Request execution times
Database query performance
Memory usage patterns
Cache effectiveness
View rendering times
Component instantiation overhead
Examples
Basic performance analysis
Analyze for 60 seconds with profiling
Focus on database queries only
Show only slow operations (>500ms)
Generate HTML performance report
Complete analysis with all options
Output
The analysis provides:
Slowest Requests: Top 10 slowest request paths
Query Analysis: Slow queries and N+1 query detection
Memory Hotspots: Areas of high memory allocation
Cache Statistics: Hit/miss ratios for various caches
Recommendations: Specific optimization suggestions
Sample Output
Notes
Profiling adds minimal overhead to your application
Best run in a staging environment with production-like data
Can be integrated with APM tools for continuous monitoring
Results are aggregated across all application instances
Last updated
Was this helpful?