Skip to content

Commit 36c6428

Browse files
committed
Code Review Feedback
1 parent ad3fdbb commit 36c6428

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TraceEvent/Stacks/Histogram.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ public void AddSample(StackSourceSample sample)
4747
/// <param name="bucket">The bucket to add to.</param>
4848
public void AddMetric(float metric, int bucket)
4949
{
50-
Debug.Assert(0 <= bucket && bucket < Count);
50+
Debug.Assert(0 <= bucket && bucket < Count, $"Bucket index is out of range. Bucket: {bucket}, Count: {Count}");
5151

5252
if (m_buckets == null)
5353
{
54-
// We're in single-bucket mode
54+
// We have not expanded to multiple buckets yet
5555
if (m_singleBucketNum < 0)
5656
{
5757
m_singleBucketNum = bucket;

0 commit comments

Comments
 (0)