.addDiagnostic(bin.processes);
      } else {
        if (last !== undefined && bin.min < last.max) {
          throw new Error('Incompatible bins');
        }
        x.bins.push(bin);
        last = bin;
      }
    }
  }

  function getHistogramUnit_(name) {
    // Customize histogram units here.
    return tr.b.Unit.byName.unitlessNumber_smallerIsBetter;
  }

  function getIsHistogramBinsLinear_(histogramName) {
    return histogramName.startsWith('Graphics.Smoothness.Throughput') ||
           histogra