class RawkLog::StatHash

Public Class Methods

new() click to toggle source
# File lib/rawk_log/stat_hash.rb, line 6
def initialize
  @stats = Hash.new
end

Public Instance Methods

add(key, time) click to toggle source
# File lib/rawk_log/stat_hash.rb, line 14
def add(key, time)
  stat = @stats[key] || (@stats[key] = RawkLog::Stat.new(key))
  stat.add(time)
end
empty?() click to toggle source
# File lib/rawk_log/stat_hash.rb, line 10
def empty?
  @stats.empty?
end
print(args={:sort_by => 'key', :ascending => true, :limit => nil}) click to toggle source