endBatch method

void endBatch()

Implementation

void endBatch() {
  if (!enablePerformance) {
    return;
  }
  _endBatchTime = currentMicroseconds();
  if (_startBatchTime != 0) {
    _performanceData.batchCount++;
    _batchTime += (_endBatchTime - _startBatchTime); // 多次patch, 一次render的情况
  }
  _startBatchTime = 0;
}