Module Benelux
In: lib/benelux/range.rb
lib/benelux/packer.rb
lib/benelux/stats.rb
lib/benelux/track.rb
lib/benelux/mark.rb
lib/benelux/timeline.rb
lib/benelux.rb

Methods

Classes and Modules

Class Benelux::AlreadyTimed
Class Benelux::BadRecursion
Class Benelux::BeneluxError
Class Benelux::Mark
Class Benelux::MethodCounter
Class Benelux::MethodPacker
Class Benelux::MethodTimer
Class Benelux::NotSupported
Class Benelux::Range
Class Benelux::Stats
Class Benelux::Timeline
Class Benelux::Tms
Class Benelux::Track
Class Benelux::UnknownTrack

Constants

VERSION = "0.6.1"
NOTSUPPORTED = [Class, Object, Kernel]

Attributes

known_threads  [R] 
packed_methods  [R] 
timeline  [R] 
timeline_chunk  [R] 
timeline_updates  [R] 
tracks  [R] 

Public Class methods

Run a benchmark the healthy way: with a warmup run, with multiple repetitions, and standard deviation.

  • n Number of times to execute blk (one data sample)
  • reps Number of data samples to collect
  • blk a Ruby block to benchmark

Returns a Benelux::Tms object

If name is specified, this will associate the current thread with that Track name (the Track will be created if necessary).

If track is nil, it returns the Track object for the Track associated to the current thread.

Only updates data from threads that are dead and rotated timelines.

[Validate]