 if (bin.count === 0) continue;

        const shiftedValue =
            (bin.min + bin.max) / 2 + shift * (bin.max - bin.min);

        for (const [processName, count] of bin.processes) {
          bin.processes.set(processName, shiftedValue * count / bin.count);
        }
        for (let i = 0; i < bin.count; i++) {
          histogram.addSample(
              shiftedValue, {processes: bin.processes, events: bin.events});
        }
      }
      histograms.addHistogram(histogram);
    }
  }

  tr.metric