Skip to content

Commit

Permalink
Merge pull request #6 from opentable/use-64allocation
Browse files Browse the repository at this point in the history
Read AllocationAmount64 when handling gc allocation
  • Loading branch information
seif authored Mar 18, 2020
2 parents b81dcc8 + 8076a87 commit 31c3f67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void ProcessEvent(EventWrittenEventArgs e)
{
const uint lohHeapFlag = 0x1;
var heapLabelValue = ((uint) e.Payload[1] & lohHeapFlag) == lohHeapFlag ? "loh" : "soh";
_metrics.Measure.Meter.Mark(DotNetRuntimeMetricsRegistry.Meters.AllocatedBytes, new MetricTags("heap", heapLabelValue), (uint)e.Payload[0]);
_metrics.Measure.Meter.Mark(DotNetRuntimeMetricsRegistry.Meters.AllocatedBytes, new MetricTags("heap", heapLabelValue), Convert.ToInt64((UInt64)e.Payload[3]));
return;
}

Expand Down

0 comments on commit 31c3f67

Please sign in to comment.