incrementMetric method

void incrementMetric(
  1. String name,
  2. int value
)

Increments the metric with the given name.

If the metric does not exist, a new one will be created. If the Trace has not been started or has already been stopped, returns immediately without taking action.

Implementation

void incrementMetric(String name, int value) {
  return _delegate.incrementMetric(name, value);
}