While working on the DevTools profiler, I've noticed that durations are sometimes incorrect. This seems to be vaguely related to high/low priority state updates. Need to track this down more so I'm filing an issue for myself.
if (firstBatch !== null && firstBatch._expirationTime <= expirationTime) {
    if (completedBatches === null) {
      completedBatches = [firstBatch];
    } else {
      completedBatches.push(firstBatch);
    }
    if (firstBatch._defer) {
      
      
      root.finishedWork = finishedWork;
      root.expirationTime = NoWork;
      return;
    }
  }
  
  root.finishedWork = null;
  
  
  if (root === lastCommittedRootDuringThisBatch) {
    
    
    nestedUpdateCount++;
  } else {
    
    lastCommittedRootDuringThisBatch = root;
    nestedUpdateCount = 0;
  }
  commitRoot(root, finishedWork);
}
function shouldYield() {