From 0a6eaed50b83a35a687699aa5e871b80605c9f46 Mon Sep 17 00:00:00 2001 From: Nayana Bidari Date: Thu, 22 Apr 2021 16:04:40 -0700 Subject: Add weirdness sentry metric. Weirdness metric contains fields to track the number of clock fallback, partial result and vsyscalls. This metric will avoid the overhead of having three different metrics (fallbackMetric, partialResultMetric, vsyscallCount). PiperOrigin-RevId: 369970218 --- pkg/sentry/time/calibrated_clock.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/sentry/time') diff --git a/pkg/sentry/time/calibrated_clock.go b/pkg/sentry/time/calibrated_clock.go index f9a93115d..94f98d746 100644 --- a/pkg/sentry/time/calibrated_clock.go +++ b/pkg/sentry/time/calibrated_clock.go @@ -103,6 +103,7 @@ func (c *CalibratedClock) resetLocked(str string, v ...interface{}) { c.ready = false c.ref.Reset() fallbackMetric.Increment() + metric.WeirdnessMetric.Increment("fallback") } // updateParams updates the timekeeping parameters based on the passed -- cgit v1.2.3