Module: Diagnostics::Sample::Controls::Result::Digest

Extended by:
Diagnostics::Sample::Controls::Result, StandardDeviation::Values
Defined in:
lib/diagnostics/sample/controls/result.rb

Class Method Summary collapse

Methods included from StandardDeviation::Values

count, frequency, mean, sum, values

Methods included from Diagnostics::Sample::Controls::Result

standard_deviation

Class Method Details

.exampleObject



30
31
32
33
34
35
36
37
38
# File 'lib/diagnostics/sample/controls/result.rb', line 30

def self.example
  <<~TEXT % [count, sum, mean, standard_deviation, frequency, gc]
    Cycles: %d
    Time: %fms
    Mean Cycle Time: %fms (± %fms)
    Cycles Per Second: %f
    GC: #{gc ? 'on' : 'off'}
  TEXT
end

.gcObject



26
27
28
# File 'lib/diagnostics/sample/controls/result.rb', line 26

def self.gc
  false
end