Class SlowestTimes
In: lib/production_log/analyzer.rb
Parent: SizedList

Stores limit time/object pairs, keeping only the largest limit items.

Sample usage:

  l = SlowestTimes.new 5

  l << [Time.now, 'one']
  l << [Time.now, 'two']
  l << [Time.now, 'three']
  l << [Time.now, 'four']
  l << [Time.now, 'five']
  l << [Time.now, 'six']

  p l.map { |i| i.last }

Methods

new  

Public Class methods

Creates a new SlowestTimes SizedList that holds only limit time/object pairs.

[Validate]