incrementCounter static method

void incrementCounter(
  1. String name
)

Increment a named counter to track occurrences of an event

Implementation

static void incrementCounter(String name) {
  if (!ZenConfig.enablePerformanceTracking) return;

  _counters[name] = (_counters[name] ?? 0) + 1;
}