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

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

Issue 969973002: Revert Renderer.LayoutMs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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') | no next file » | 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 06ced1cd8d714bdc1730e2be88a5951c95906581..f09d87ffbb4bb9e332ca2ea17c791f23790d3c51 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -87,7 +87,6 @@
#include "platform/graphics/paint/DisplayItemList.h"
#include "platform/scroll/ScrollAnimator.h"
#include "platform/text/TextStream.h"
-#include "public/platform/Platform.h"
#include "wtf/CurrentTime.h"
#include "wtf/StdLibExtras.h"
#include "wtf/TemporaryChange.h"
@@ -843,11 +842,6 @@ void FrameView::performPreLayoutTasks()
lifecycle().advanceTo(DocumentLifecycle::StyleClean);
}
-void FrameView::lineLayoutTime(double ms)
-{
- m_lineLayoutMs += ms;
-}
-
static void gatherDebugLayoutRects(LayoutObject& layoutRoot)
{
bool isTracing;
@@ -885,9 +879,7 @@ void FrameView::performLayout(bool inSubtreeLayout)
{
ASSERT(inSubtreeLayout || m_layoutSubtreeRoots.isEmpty());
- m_lineLayoutMs = 0;
TRACE_EVENT0("blink,benchmark", "FrameView::performLayout");
- double start = WTF::currentTimeMS();
ScriptForbiddenScope forbidScript;
@@ -922,10 +914,6 @@ void FrameView::performLayout(bool inSubtreeLayout)
ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->updateAllImageResourcePriorities();
lifecycle().advanceTo(DocumentLifecycle::AfterPerformLayout);
- int layoutMs = (WTF::currentTimeMS() - start);
- Platform::current()->histogramCustomCounts("Renderer.LayoutMs", layoutMs, 0, 1000 * 60, 50);
- // TODO(benjhayden): re-enable when safe
- // 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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698