class Testify::Tracker::Tracer(A)
- Testify::Tracker::Tracer(A)
- Reference
- Object
Overview
Creates a tracer that can trace calls, elapsed time, etc with some data.
See
LogTracerfor an example.
Defined in:
tracer/arg.crtracer/trace.cr
tracer/tracer.cr
Constructors
Instance Method Summary
-
#add(name : String | Symbol, args : Array)
Creates a trace referenced to the name namespace.
-
#args?(name : String | Symbol, index : Int32) : Array(Arg(A))
Returns
Tracearguments added to name at index. -
#args_values?(name : String | Symbol, index : Int32) : Array(A)
Returns the values of
Tracearguments added to name at index. -
#get(name : String | Symbol, index : Int32) : Trace(A)
Returns
Traceinstance of name at index. -
#get(name : String | Symbol) : Array(Trace(A))
Returns entries of name.
-
#get?(name : String | Symbol, index : Int32) : Trace(A) | Nil
Returns
Traceinstance of name at index. -
#get?(name : String | Symbol) : Array(Trace(A)) | Nil
Returns entries of name.
-
#has?(name : String | Symbol) : Bool
Returns
trueif name has one or more traces. -
#period : Time::Span
Period (
Time.monotonic) of the tracer creation. -
#size(name : String | Symbol) : Int32
Returns the numbers of traces for name.
-
#traces : Hash(String, Array(Trace(A)))
Returns a
Hashof all entries. -
#with_args?(name : String | Symbol, index : Int32, args : Array(Arg(A))) : Bool
Compares args with the
Tracearguments added to name at index. -
#with_args?(name : String | Symbol, index : Int32, args : Array) : Bool
Compares args with the
Tracearguments added to name at index.
Constructor Detail
Instance Method Detail
Returns Trace arguments added to name at index.
Returns the values of Trace arguments added to name at index.
Returns Trace instance of name at index.
Returns Trace instance of name at index.
Compares args with the Trace arguments added to name at index.