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() |