CogUtil::PerformanceRegression
Inherits Reference < Object
Constructors
new(storage_path : String = "performance_history.json", baseline_window : Int32 = 10, sensitivity_threshold : Float64 = 5.0)
Instance methods
analyze_regressions(current_session : PerformanceProfiler::Session) : Array(RegressionResult)
Analyze for performance regressions
cleanup_old_data(retention_days : Int32 = 90)
Clean old data beyond retention period
export_data(format : String = "json") : String
Export historical data for external analysis
generate_regression_report(regressions : Array(RegressionResult)) : String
Generate regression report
get_trend_analysis(function_name : String, days : Int32 = 30) : Hash(String, Float64) | Nil
Get trend analysis for a specific function
record_metrics(session : PerformanceProfiler::Session, version : String)
Record current performance metrics