class Spectator::Profile
- Spectator::Profile
- Reference
- Object
Overview
Information about the runtimes of examples.
Included Modules
- Indexable(Spectator::Result)
Defined in:
spectator/profile.crClass Method Summary
-
.generate(report, size = 10)
Produces the profile from a report.
Instance Method Summary
-
#percentage
Percentage (from 0 to 1) of time the results in this profile took compared to all examples.
-
#size
Number of results in the profile.
-
#time
Length of time it took to run the results in the profile.
-
#total_time : Time::Span
Total length of time it took to run all examples in the test suite.
-
#unsafe_fetch(index)
Retrieves a result at the specified index.
Instance methods inherited from class Object
should(matcher)
should,
should_eventually(matcher)
should_eventually,
should_never(matcher)
should_never,
should_not(matcher)
should_not
Class Method Detail
Instance Method Detail
def percentage
#
Percentage (from 0 to 1) of time the results in this profile took compared to all examples.