code: function buildIdToNodeMap(profile) {
          const idToNode = new Map();;
          const stack = [profile.resultRoot];
          //循环遍历
          while (stack.length) {
              const node = stack.pop();
              idToNode.set(node.id, node);
              stack.push.apply(stack, node.children);
          }
          //结果存入 _idToNode 属性
          profile._idToNode = idToNode;
      }
docs: *
  @param {object} profile
  @description id -> node 节点映射