abstract class CQL::Performance::BasePerformanceComponent

Overview

Base performance component with common functionality

Included Modules

Direct Known Subclasses

Defined in:

performance/utilities.cr

Constant Summary

Log = ::Log.for(self)

Instance Method Summary

Instance methods inherited from module CQL::Performance::TimingUtils

categorize_duration(duration : Time::Span, slow_threshold : Time::Span = 100.milliseconds, very_slow_threshold : Time::Span = 1.second) : Symbol categorize_duration, format_duration(duration : Time::Span) : String format_duration, measure_execution(&) measure_execution

Instance Method Detail

def enabled=(enabled : Bool) #

[View source]
def enabled? : Bool #

[View source]
def healthy? : Bool #

[View source]
def reset #

[View source]
def stats : StatsTracker #

[View source]