class

Testify::Tracker::Tracer(A)

Inherits Reference < Object

Creates a tracer that can trace calls, elapsed time, etc with some data.

See LogTracer for an example.

Constructors

Instance methods

add(name : String | Symbol, args : Array)

Creates a trace referenced to the name namespace.

Source
args?(name : String | Symbol, index : Int32) : Array(Arg(A))

Returns Trace arguments added to name at index.

Source
args_values?(name : String | Symbol, index : Int32) : Array(A)

Returns the values of Trace arguments added to name at index.

Source
get(name : String | Symbol, index : Int32) : Trace(A)

Returns Trace instance of name at index.

Source
get(name : String | Symbol) : Array(Trace(A))

Returns entries of name.

Source
get?(name : String | Symbol, index : Int32) : Trace(A) | Nil

Returns Trace instance of name at index.

Source
get?(name : String | Symbol) : Array(Trace(A)) | Nil

Returns entries of name.

Source
has?(name : String | Symbol) : Bool

Returns true if name has one or more traces.

Source
period

Period (Time.monotonic) of the tracer creation.

Source
size(name : String | Symbol) : Int32

Returns the numbers of traces for name.

Source
traces

Returns a Hash of all entries.

Source
with_args?(name : String | Symbol, index : Int32, args : Array(Arg(A))) : Bool

Compares args with the Trace arguments added to name at index.

Source
with_args?(name : String | Symbol, index : Int32, args : Array) : Bool

Compares args with the Trace arguments added to name at index.

Source

Nested types