class Puppet::Util::Profiler::Aggregate::Metric
Attributes
count[R]
time[R]
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/puppet/util/profiler/aggregate.rb 53 def initialize 54 super 55 @count = 0 56 @time = 0 57 end
Public Instance Methods
[](key)
click to toggle source
Calls superclass method
# File lib/puppet/util/profiler/aggregate.rb 60 def [](key) 61 if !has_key?(key) 62 self[key] = Metric.new 63 end 64 super(key) 65 end
add_time(time)
click to toggle source
# File lib/puppet/util/profiler/aggregate.rb 71 def add_time(time) 72 @time += time 73 end
increment()
click to toggle source
# File lib/puppet/util/profiler/aggregate.rb 67 def increment 68 @count += 1 69 end