setCreateNodeInfo method

void setCreateNodeInfo(
  1. int count,
  2. Map<String, int> info
)

Implementation

void setCreateNodeInfo(int count, Map<String, int> info) {
  if (!enablePerformance) {
    return;
  }

  info.forEach((key, value) {
    if (!_performanceData.data.containsKey(key)) {
      _performanceData.data[key] = NodePerformanceData();
    }
    _performanceData.data[key]?.createCount += value;
  });
}