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

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 e7ca1485c27c4b6ba68135c76d94b28e905c38d0..a0f657d6f3cdbf66081228badc8abb090ee24ec7 100644
--- a/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp
@@ -196,6 +196,12 @@ void updateDescendantDependentFlagsForEntireSubtree(PaintLayer& layer)
void PaintLayerCompositor::updateIfNeededRecursive()
{
+ SCOPED_BLINK_UMA_HISTOGRAM_TIMER("Blink.Compositing.UpdateTime");
+ updateIfNeededRecursiveInternal();
+}
+
+void PaintLayerCompositor::updateIfNeededRecursiveInternal()
+{
FrameView* view = m_layoutView.frameView();
if (view->shouldThrottleRendering())
return;
@@ -208,7 +214,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");
« no previous file with comments | « third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.h ('k') | third_party/WebKit/Source/platform/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698