newTrace method

Trace newTrace(
  1. String name
)

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

Trace newTrace(String name) {
  return Trace._(_delegate.newTrace(name));
}