class Spectator::Profile

Overview

Information about the runtimes of examples.

Included Modules

Defined in:

spectator/profile.cr

Class Method Summary

Instance Method Summary

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

def self.generate(report, size = 10) #

Produces the profile from a report.


[View source]

Instance Method Detail

def percentage #

Percentage (from 0 to 1) of time the results in this profile took compared to all examples.


[View source]
def size #

Number of results in the profile.


[View source]
def time #

Length of time it took to run the results in the profile.


[View source]
def total_time : Time::Span #

Total length of time it took to run all examples in the test suite.


[View source]
def unsafe_fetch(index) #

Retrieves a result at the specified index.


[View source]