Spectator::Profile
Inherits Indexable / Enumerable / Iterable / Reference / Object
Information about the runtime of examples.
Constructors
new(slowest : Array(Example), total_time : Time::Span)
Creates the profiling information. The slowest results must already be sorted, longest time first.
Class methods
Instance methods
percentage
Percentage (from 0 to 100) of time the results in this profile took compared to all examples.