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

Unified Diff: Source/core/frame/FrameView.cpp

Issue 877293003: Renderer.LineLayoutMs UMA histogram to measure line layout time. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: . Created 5 years, 11 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
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | Source/core/rendering/RenderBlockLineLayout.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index a37325b161e2459a70afe0803b4ad6ee2374dfa8..d6054bebe0ab9b86d7cead43dc73573765fbcc93 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -833,8 +833,14 @@ void FrameView::performPreLayoutTasks()
lifecycle().advanceTo(DocumentLifecycle::StyleClean);
}
+void FrameView::lineLayoutTime(double ms)
+{
+ m_lineLayoutMs += ms;
+}
+
void FrameView::performLayout(RenderObject* rootForThisLayout, bool inSubtreeLayout)
{
+ m_lineLayoutMs = 0;
TRACE_EVENT0("blink,benchmark", "FrameView::performLayout");
double start = WTF::currentTimeMS();
@@ -862,6 +868,7 @@ void FrameView::performLayout(RenderObject* rootForThisLayout, bool inSubtreeLay
lifecycle().advanceTo(DocumentLifecycle::AfterPerformLayout);
int layoutMs = (WTF::currentTimeMS() - start);
Platform::current()->histogramCustomCounts("Renderer.LayoutMs", layoutMs, 0, 1000 * 60, 50);
+ Platform::current()->histogramCustomCounts("Renderer.LineLayoutMs", m_lineLayoutMs, 0, 1000 * 60, 50);
}
void FrameView::scheduleOrPerformPostLayoutTasks()
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | Source/core/rendering/RenderBlockLineLayout.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698