17 references to HistogramBuckets
Aspire.Dashboard (2)
Components\Controls\Chart\ChartDataCalculator.cs (2)
286? HistogramBuckets.Add(ref currentBucketCounts, ref explicitBounds, histogramValue.Values, 288: HistogramBuckets.AddBounds(ref explicitBounds, histogramValue.Values,
Aspire.Dashboard.Tests (15)
ChartDataCalculatorTests.cs (7)
513Assert.True(HistogramBuckets.Add(ref counts, ref bounds, [1, 2, 2, 0], [10, 50, 100], [])); 526Assert.True(HistogramBuckets.Add(ref counts, ref bounds, [4, 5, 6, 7], [10, 50, 100], [])); 541Assert.True(HistogramBuckets.Add(ref counts, ref bounds, incoming, [10, 100], previous)); 555Assert.True(HistogramBuckets.Add(ref counts, ref bounds, [5, 6, 7], incomingBounds, [])); 567Assert.True(HistogramBuckets.Add(ref counts, ref bounds, [5, 6, 7, 8], [10, 75, 100], [1, 2, 3, 4])); 580Assert.True(HistogramBuckets.Add(ref counts, ref bounds, [3, 4], [20], [])); 595Assert.False(HistogramBuckets.Add(ref counts, ref bounds, [4, 5, 6], [20, 200], [4, 5, 6]));
HistogramAllocationTests.cs (8)
55HistogramBuckets.Add(ref counts, ref bounds, incoming, originalBounds, previous); 62added = HistogramBuckets.Add(ref counts, ref bounds, incoming, originalBounds, previous); 84HistogramBuckets.Add(ref counts, ref bounds, incoming, incomingBounds, []); 90HistogramBuckets.Add(ref counts, ref bounds, incoming, incomingBounds, []); 109HistogramBuckets.Add(ref counts, ref bounds, incoming, incomingBounds, incoming); 116added = HistogramBuckets.Add(ref counts, ref bounds, incoming, incomingBounds, incoming); 138HistogramBuckets.AddBounds(ref bounds, incoming, incomingBounds, previous); 145added = HistogramBuckets.AddBounds(ref bounds, incoming, incomingBounds, previous);