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

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

Issue 882293002: Renderer.LayoutMs UMA histogram (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: include Platform.h to compile 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 | « no previous file | 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 6633b1be6850dcd7980e7b7834dfd6b6f8b44d55..a15fe65689bdf8c3b570b59e40fc950671a33d57 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -87,6 +87,7 @@
#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"
@@ -835,6 +836,7 @@ void FrameView::performPreLayoutTasks()
void FrameView::performLayout(RenderObject* rootForThisLayout, bool inSubtreeLayout)
{
TRACE_EVENT0("blink,benchmark", "FrameView::performLayout");
+ double start = WTF::currentTimeMS();
ScriptForbiddenScope forbidScript;
@@ -858,6 +860,8 @@ void FrameView::performLayout(RenderObject* rootForThisLayout, bool inSubtreeLay
ResourceLoadPriorityOptimizer::resourceLoadPriorityOptimizer()->updateAllImageResourcePriorities();
lifecycle().advanceTo(DocumentLifecycle::AfterPerformLayout);
+ int layoutMs = (WTF::currentTimeMS() - start);
+ Platform::current()->histogramCustomCounts("Renderer.LayoutMs", layoutMs, 0, 1000 * 60, 50);
}
void FrameView::scheduleOrPerformPostLayoutTasks()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698