TraceTiming class
Timing object returned by ITracer.beginTrace to end timing of execution block and record the associated trace.
Example
var timing = tracer.beginTrace("mymethod.exec_time"); try { ... timing.endTrace(); } catch (err) { timing.endFailure(err); }
Constructors
- TraceTiming(String? correlationId, String component, String operation, ITracer? tracer)
- Creates a new instance of the timing tracer object.
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
endFailure(
Exception error) → void - Ends timing of a failed block, calculates elapsed time and records the associated trace.
-
endTrace(
) → void - Ends timing of an execution block, calculates elapsed time and records the associated trace.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited