1 write to _heap
Microsoft.Extensions.Telemetry (1)
Sampling\BottomKSampler.cs (1)
102
_heap
= new List<HeapEntry>(reservoirCapacity + 2);
30 references to _heap
Microsoft.Extensions.Telemetry (30)
Sampling\BottomKSampler.cs (30)
206
if (
_heap
.Count > _reservoirCapacity)
215
foreach (var entry in
_heap
)
233
_heap
.Clear();
277
var output = new List<SampledRecord<TCallsite, TPayload>>(
_heap
.Count + ReserveLength);
323
if (
_heap
.Count > _reservoirCapacity + 1)
340
Tau =
_heap
.Count > _reservoirCapacity
341
?
_heap
[0].Key
392
_heap
.Add(entry);
393
int i =
_heap
.Count - 1;
397
if (
_heap
[parent].Key >=
_heap
[i].Key)
402
(
_heap
[parent],
_heap
[i]) = (
_heap
[i],
_heap
[parent]);
409
HeapEntry root =
_heap
[0];
410
int last =
_heap
.Count - 1;
411
_heap
[0] =
_heap
[last];
412
_heap
.RemoveAt(last);
413
if (
_heap
.Count > 0)
426
int count =
_heap
.Count;
433
if (left < count &&
_heap
[left].Key >
_heap
[largest].Key)
438
if (right < count &&
_heap
[right].Key >
_heap
[largest].Key)
448
(
_heap
[i],
_heap
[largest]) = (
_heap
[largest],
_heap
[i]);