Class Amalgalite::ProfileSampler
In: lib/amalgalite/profile_tap.rb
lib/amalgalite/profile_tap.rb
Parent: Object

A ProfileSampler is a sampler of profile times. It aggregates up profile events that happen for the same source. It is based upon the RFuzz::Sampler class from the rfuzz gem

Methods

mean   mean   new   new   reset!   reset!   sample   sample   stddev   stddev   to_a   to_a   to_h   to_h   to_s   to_s  

Public Class methods

create a new sampler with the given name

create a new sampler with the given name

Public Instance methods

return the mean of the data

return the mean of the data

reset the internal state so it may be used again

reset the internal state so it may be used again

add a sample to the calculations

add a sample to the calculations

returns the standard deviation of the data

returns the standard deviation of the data

return all the values as an array

return all the values as an array

return all the values as a hash

return all the values as a hash

return a string containing the sampler summary

return a string containing the sampler summary

[Validate]