struct HDRHistogram::Histogram

Defined in:

hdr_histogram/histogram.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(min : Int64, max : Int64, significant_figures : Int32) #

[View source]
def self.new(min : Int, max : Int, sigfigs) #

[View source]

Instance Method Detail

def bucket_count : Int32 #

[View source]
def bucket_count=(bucket_count : Int32) #

[View source]
def bytesize #

[View source]
def count_at_index(index, sub_index) #

[View source]
def counts : Array(Int64) #

[View source]
def counts=(counts : Array(Int64)) #

[View source]
def counts_size : Int32 #

[View source]
def counts_size=(counts_size : Int32) #

[View source]
def each_bucket(&) #

[View source]
def each_percentile(ticks_per_half_distance, &) #

[View source]
def each_value(&) #

[View source]
def empty? #

[View source]
def equal_values?(a, b) #

[View source]
def highest_equivalent_value(value) #

[View source]
def highest_trackable_value : Int64 #

[View source]
def highest_trackable_value=(highest_trackable_value : Int64) #

[View source]
def lowest_equivalent_value(value) #

[View source]
def lowest_trackable_value : Int64 #

[View source]
def lowest_trackable_value=(lowest_trackable_value : Int64) #

[View source]
def max #

approximate


[View source]
def mean #

approximate


[View source]
def median_equivalent_value(value) #

[View source]
def merge(other : Histogram) #

[View source]
def min #

approximate


[View source]
def record_corrected_value(value, expected_interval, count = 1_i64) #

record_corrected_value records the given value, correcting for coordinated omission (ie stalls in the recording process). This only works for processes which are recording values at an expected interval (e.g., doing jitter analysis). Processes which are recording ad-hoc values (e.g., latency for incoming requests) can't take advantage of this.


[View source]
def record_value(value) #

[View source]
def record_values(value : Int64, count : Int64) #

[View source]
def record_values(value : Int, count : Int) #

[View source]
def reset #

[View source]
def significant_figures : Int64 #

[View source]
def significant_figures=(significant_figures : Int64) #

[View source]
def std_dev #

approximate


[View source]
def sub_bucket_count : Int32 #

[View source]
def sub_bucket_count=(sub_bucket_count : Int32) #

[View source]
def sub_bucket_half_count : Int32 #

[View source]
def sub_bucket_half_count=(sub_bucket_half_count : Int32) #

[View source]
def sub_bucket_half_count_magnitude : Int32 #

[View source]
def sub_bucket_half_count_magnitude=(sub_bucket_half_count_magnitude : Int32) #

[View source]
def sub_bucket_mask : Int64 #

[View source]
def sub_bucket_mask=(sub_bucket_mask : Int64) #

[View source]
def total_count : Int64 #

[View source]
def total_count=(total_count : Int64) #

[View source]
def unit_magnitude : Int64 #

[View source]
def unit_magnitude=(unit_magnitude : Int64) #

[View source]
def value_at_percentile(q) #

[View source]
def value_from_index(index, sub_index) #

[View source]