CogUtil::PerformanceMonitor
Inherits Reference < Object
Constructors
new(sample_buffer_size : Int32 = 10000)
SourceInstance methods
get_metric_history(name : String, duration : Time::Span = 1.hour) : Array(MetricSample)
Get recent metrics for a specific name
record_metric(name : String, value : Float64, tags : Hash(String, String) = Hash(String, String).new)
Record a performance metric