constructor()

in perf.js [31:37]


  constructor(id, name) {
    this.id = id || Math.floor(Math.random() * 10000);
    this.name = name || `perf_${this.id}`;
    this.start = Date.now();
    this.stack = [{ ref: getStackLine(2), ts: 0, name: "create" }];
    this.length = 1;
  }