зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 5281f57107c7 (bug 1728423) for hangs in nsLayoutUtils::PaintFrame (bug 1729723). CLOSED TREE
This commit is contained in:
Родитель
f8eade1ce0
Коммит
43d8cf1386
|
@ -1,27 +0,0 @@
|
|||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
# This file defines the metrics that are recorded by the Glean SDK. They are
|
||||
# automatically converted to platform-specific code at build time using the
|
||||
# `glean_parser` PyPI package.
|
||||
|
||||
---
|
||||
$schema: moz://mozilla.org/schemas/glean/metrics/2-0-0
|
||||
|
||||
paint:
|
||||
build_displaylist_time:
|
||||
type: timing_distribution
|
||||
description: >
|
||||
The time to build a Gecko display list.
|
||||
bugs:
|
||||
- https://bugzilla.mozilla.org/show_bug.cgi?id=1728423
|
||||
data_reviews:
|
||||
- https://bugzilla.mozilla.org/show_bug.cgi?id=1728423
|
||||
data_sensitivity:
|
||||
- technical
|
||||
notification_emails:
|
||||
- gfx-telemetry-alerts@mozilla.com
|
||||
- mwoodrow@mozilla.com
|
||||
expires: never
|
||||
telemetry_mirror: PAINT_BUILD_DISPLAYLIST_TIME
|
|
@ -34,7 +34,6 @@
|
|||
#include "mozilla/ClearOnShutdown.h"
|
||||
#include "mozilla/DisplayPortUtils.h"
|
||||
#include "mozilla/GeckoBindings.h"
|
||||
#include "mozilla/glean/GleanMetrics.h"
|
||||
#include "mozilla/dom/AnonymousContent.h"
|
||||
#include "mozilla/dom/BrowserChild.h"
|
||||
#include "mozilla/dom/CanvasUtils.h"
|
||||
|
@ -3098,7 +3097,6 @@ void nsLayoutUtils::PaintFrame(gfxContext* aRenderingContext, nsIFrame* aFrame,
|
|||
PresShell* presShell = presContext->PresShell();
|
||||
|
||||
TimeStamp startBuildDisplayList = TimeStamp::Now();
|
||||
auto dlTimerId = mozilla::glean::paint::build_displaylist_time.Start();
|
||||
|
||||
const bool buildCaret = !(aFlags & PaintFrameFlags::HideCaret);
|
||||
|
||||
|
@ -3386,8 +3384,9 @@ void nsLayoutUtils::PaintFrame(gfxContext* aRenderingContext, nsIFrame* aFrame,
|
|||
|
||||
const double geckoDLBuildTime =
|
||||
(TimeStamp::Now() - startBuildDisplayList).ToMilliseconds();
|
||||
mozilla::glean::paint::build_displaylist_time.StopAndAccumulate(
|
||||
std::move(dlTimerId));
|
||||
|
||||
Telemetry::Accumulate(Telemetry::PAINT_BUILD_DISPLAYLIST_TIME,
|
||||
geckoDLBuildTime);
|
||||
|
||||
bool consoleNeedsDisplayList =
|
||||
(gfxUtils::DumpDisplayList() || gfxEnv::DumpPaint()) &&
|
||||
|
|
|
@ -11,7 +11,6 @@ metrics_yamls = [
|
|||
"toolkit/components/glean/tests/test_metrics.yaml",
|
||||
"toolkit/mozapps/update/metrics.yaml",
|
||||
"browser/base/content/metrics.yaml",
|
||||
"gfx/metrics.yaml",
|
||||
]
|
||||
|
||||
# The list of all Glean pings.yaml files, relative to the top src dir.
|
||||
|
|
Загрузка…
Ссылка в новой задаче