Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(468)

Unified Diff: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp

Issue 1852633002: Add UMA stats for time in paint+layout, compositing, paint invalidation and paint. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
index 26f74ec8bb84d91ae85a2125af480ac43b364989..3c6e4f03d805a13bed938b7bc65b5a0912323c9e 100644
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
@@ -194,6 +194,12 @@ void updateDescendantDependentFlagsForEntireSubtree(PaintLayer& layer)
void PaintLayerCompositor::updateIfNeededRecursive()
{
+ SCOPED_BLINK_UMA_HISTOGRAM_TIMER("Blink.Compositing.UpdateUs");
+ updateIfNeededRecursiveInternal();
+}
+
+void PaintLayerCompositor::updateIfNeededRecursiveInternal()
+{
FrameView* view = m_layoutView.frameView();
if (view->shouldThrottleRendering())
return;
@@ -206,7 +212,7 @@ void PaintLayerCompositor::updateIfNeededRecursive()
// the frame tree is in an inconsistent state, such as in the middle of frame detach.
// TODO(bbudge) Remove this check when trusted Pepper plugins are gone.
if (localFrame->document()->isActive() && localFrame->contentLayoutObject())
- localFrame->contentLayoutObject()->compositor()->updateIfNeededRecursive();
+ localFrame->contentLayoutObject()->compositor()->updateIfNeededRecursiveInternal();
}
TRACE_EVENT0("blink", "PaintLayerCompositor::updateIfNeededRecursive");

Powered by Google App Engine
This is Rietveld 408576698