`getContextChangedKeys` only handles class components:
https://github.com/facebook/react/blob/355591add41c0f6dad738fdb1b6603e0786b7b4e/packages/react-devtools-shared/src/backend/renderer.js#L1276-L1304
We don't patch any methods so there is no cleanup.
  }
  function rootSupportsProfiling(root) {
    if (root.memoizedInteractions != null) {
       v
      return true;
    } else if (
      root.current != null &&
      root.current.hasOwnProperty('treeBaseDuration')
    ) {
       T
       s
      return true;
    } else {
      return false;
    }
  }
  function flushInitialOperations() {
    const localPendingOperationsQueue = pendingOperationsQueue;
    pendingOperationsQueue = null;
    if (
      localPendingOperationsQueue !== null &&
      localPendingOperationsQueue.length > 0
    ) {
       W
       I
      localPendingOperationsQueue.forEach(operations => {
        hook.emit('operations', operations);
      });
    } else {