addRef()

in perf.js [39:50]


  addRef(name) {
    const ticks = Date.now() - this.start;
    const entry = { ref: getStackLine(2), ts: ticks };
    if (name) {
      entry.name = name;
    }
    if (ticks - this.stack[this.stack.length - 1].ts > HOT_SPOT_MIN) {
      entry.hot = true;
    }
    this.stack.push(entry);
    this.length = this.stack.length;
  }