wheels analyze performance
Analyzes application performance, identifying bottlenecks and optimization opportunities in your CFWheels application.
Usage
Parameters
--profile
- (Optional) Duration to profile the application (e.g.,30s
,5m
). Default:60s
--threshold
- (Optional) Minimum execution time in milliseconds to report. Default:100
--format
- (Optional) Output format:console
,json
,csv
. Default:console
Description
The analyze performance
command profiles your CFWheels 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
Profile for 5 minutes
Show only slow operations (>500ms)
Export results as CSV
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?