recordUsageHit static method

void recordUsageHit(
  1. String category,
  2. String base,
  3. String typeArg
)

Record a successful resolution of category (relaxer, proxy, coercion, or ctor) for base with typeArg. No-op unless usageLogEnabled; call sites still guard the flag to avoid key allocation when logging is off.

Implementation

static void recordUsageHit(String category, String base, String typeArg) {
  if (!usageLogEnabled) return;
  final key = _usageKey(category, base, typeArg);
  _usageHits[key] = (_usageHits[key] ?? 0) + 1;
}