Commit debe3612 authored by Jon Coppeard's avatar Jon Coppeard
Browse files

Bug 1823622 - Part 3: Lower the threshold at which we calculate mark rate telemetry r=sfink

We don't calculate this when marking is quick to exclude unreliable results
when the denominator of the calculation is very small. However we can mark in
less than 1 millisecond for small heaps with parallel marking, so this reduces
the threshold to 1 microsecond.

Depends on D173128

Differential Revision: https://phabricator.services.mozilla.com/D173129
parent c2985a05
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1033,7 +1033,7 @@ void Statistics::sendGCTelemetry() {
  size_t markCount = getCount(COUNT_CELLS_MARKED);
  runtime->metrics().GC_PREPARE_MS(prepareTotal);
  runtime->metrics().GC_MARK_MS(markTotal);
  if (markTotal >= TimeDuration::FromMilliseconds(1)) {
  if (markTotal >= TimeDuration::FromMicroseconds(1)) {
    double markRate = double(markCount) / t(markTotal);
    runtime->metrics().GC_MARK_RATE_2(uint32_t(markRate));
  }