nostics.get('breakdown');
      if (!relatedNames) {
        relatedNames = new tr.v.d.RelatedNameMap();
        histogram.diagnostics.set('breakdown', relatedNames);
      }
      relatedNames.set(category, relatedName);
      relatedHist.addSample(breakdown.total, {
        breakdown: tr.v.d.Breakdown.fromEntries(
            Object.entries(breakdown.events)),
      });
    }
  }

  function splitOneRangeIntoPerSecondRanges(startTime, endTime) {
    const results = [];
    for (let i = 0; startTime + (i +