reportSelectionPaintProfile static method

void reportSelectionPaintProfile()

Implementation

static void reportSelectionPaintProfile() {
  if (_paintSelCalls == 0) return;
  print('[RENDER_PROFILE] _paintSelection calls=$_paintSelCalls '
      'hits=$_paintSelCacheHits misses=$_paintSelCacheMisses '
      'avg=${_paintSelTotalUs ~/ _paintSelCalls}μs');
  _paintSelCalls = _paintSelCacheHits = _paintSelCacheMisses = _paintSelTotalUs = 0;
}