* Don't show "context" for classes without either contextType or contextTypes
* For classes with contextTypes, change the label to "legacy context" instead

---
Originally reported by @gaearon via https://github.com/bvaughn/react-devtools-experimental/issues/368
const id = getFiberID(getPrimaryFiber(fiber));
    const {actualDuration, treeBaseDuration} = fiber;
    idToTreeBaseDurationMap.set(id, treeBaseDuration || 0);
    if (isProfiling) {
      const {alternate} = fiber;
      if (
        alternate == null ||
        treeBaseDuration !== alternate.treeBaseDuration
      ) {
         T
         S
        const convertedTreeBaseDuration = Math.floor(
          (treeBaseDuration || 0) * 1000,
        );
        pushOperation(TREE_OPERATION_UPDATE_TREE_BASE_DURATION);
        pushOperation(id);
        pushOperation(convertedTreeBaseDuration);
      }
      if (alternate == null || didFiberRender(alternate, fiber)) {
        if (actualDuration != null) {
           T
           T
           T
           S
           N
           T
          let selfDuration = actualDuration;
          let child = fiber.child;
          while (child !== null) {
            selfDuration -= child.actualDuration || 0;