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.
} else {
    value = fn(props, context);
  }
  
  workInProgress.effectTag |= PerformedWork;
  if (
    typeof value === 'object' &&
    value !== null &&
    typeof value.render === 'function' &&
    value.$$typeof === undefined
  ) {
    const Component = workInProgress.type;
    
    workInProgress.tag = ClassComponent;
    
    
    
    const hasContext = pushLegacyContextProvider(workInProgress);
    workInProgress.memoizedState =
      value.state !== null && value.state !== undefined ? value.state : null;
    const getDerivedStateFromProps = Component.getDerivedStateFromProps;
    if (typeof getDerivedStateFromProps === 'function') {
      applyDerivedStateFromProps(
        workInProgress,
        getDerivedStateFromProps,
        props,
      );
    }
    adoptClassInstance(workInProgress, value);
    mountClassInstance(workInProgress, renderExpirationTime);