mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 07:15:46 +00:00
Bug 1501046 - Skip reporting checkerboarding to telemetry if the sanity test is running. r=botond
This is not really the best fix (a better one would be to ensure that the displayport is set on the root element of the gfx sanity window), but should do as a stopgap solution. Differential Revision: https://phabricator.services.mozilla.com/D9667 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
13191f2ae4
commit
df09857871
@ -4108,13 +4108,17 @@ AsyncPanZoomController::UpdateCheckerboardEvent(const MutexAutoLock& aProofOfLoc
|
||||
uint32_t aMagnitude)
|
||||
{
|
||||
if (mCheckerboardEvent && mCheckerboardEvent->RecordFrameInfo(aMagnitude)) {
|
||||
// This checkerboard event is done. Report some metrics to telemetry.
|
||||
// This checkerboard event is done. Report some metrics to telemetry, but
|
||||
// skip reporting if the sanity checker window is running, because we get
|
||||
// checkerboarding reported on that window that we don't really care about.
|
||||
if (!gfxPrefs::SanityTestRunning()) {
|
||||
mozilla::Telemetry::Accumulate(mozilla::Telemetry::CHECKERBOARD_SEVERITY,
|
||||
mCheckerboardEvent->GetSeverity());
|
||||
mozilla::Telemetry::Accumulate(mozilla::Telemetry::CHECKERBOARD_PEAK,
|
||||
mCheckerboardEvent->GetPeak());
|
||||
mozilla::Telemetry::Accumulate(mozilla::Telemetry::CHECKERBOARD_DURATION,
|
||||
(uint32_t)mCheckerboardEvent->GetDuration().ToMilliseconds());
|
||||
}
|
||||
|
||||
mPotentialCheckerboardTracker.CheckerboardDone();
|
||||
|
||||
|
@ -741,6 +741,8 @@ private:
|
||||
|
||||
DECL_GFX_PREF(Live, "print.font-variations-as-paths", PrintFontVariationsAsPaths, bool, true);
|
||||
|
||||
DECL_GFX_PREF(Live, "sanity-test.running", SanityTestRunning, bool, false);
|
||||
|
||||
DECL_GFX_PREF(Once, "slider.snapMultiplier", SliderSnapMultiplier, int32_t, 0);
|
||||
|
||||
DECL_GFX_PREF(Live, "test.events.async.enabled", TestEventsAsyncEnabled, bool, false);
|
||||
|
Loading…
Reference in New Issue
Block a user