recordControllerCreation static method

void recordControllerCreation(
  1. Type controllerType
)

Record controller creation

Implementation

static void recordControllerCreation(Type controllerType) {
  if (!ZenConfig.enablePerformanceTracking) return;

  activeControllers++;
  totalControllersCreated++;

  final name = controllerType.toString();
  controllerCreationCount[name] = (controllerCreationCount[name] ?? 0) + 1;
}