We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad3fdbb commit 36c6428Copy full SHA for 36c6428
src/TraceEvent/Stacks/Histogram.cs
@@ -47,11 +47,11 @@ public void AddSample(StackSourceSample sample)
47
/// <param name="bucket">The bucket to add to.</param>
48
public void AddMetric(float metric, int bucket)
49
{
50
- Debug.Assert(0 <= bucket && bucket < Count);
+ Debug.Assert(0 <= bucket && bucket < Count, $"Bucket index is out of range. Bucket: {bucket}, Count: {Count}");
51
52
if (m_buckets == null)
53
54
- // We're in single-bucket mode
+ // We have not expanded to multiple buckets yet
55
if (m_singleBucketNum < 0)
56
57
m_singleBucketNum = bucket;
0 commit comments