newTrace method
Creates a Trace
object with given name
. Traces can be used to measure
the time taken for a sequence of steps. Traces also include “Counters”.
Counters are used to track information which is cumulative in nature
(e.g., Bytes downloaded).
The name
requires no leading or trailing whitespace, no leading
underscore _ character, and max length of Trace.maxTraceNameLength
characters.
Implementation
@override
Trace newTrace(String name) {
return FakeTrace();
}