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

Unified Diff: Source/core/layout/LayoutAnalyzer.cpp

Issue 1113353003: Remove LayoutAnalyzer UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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/layout/LayoutAnalyzer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutAnalyzer.cpp
diff --git a/Source/core/layout/LayoutAnalyzer.cpp b/Source/core/layout/LayoutAnalyzer.cpp
index d02b62c35842ef8baacd6ce2786029ccf3f936a6..e59b51a0d49646e158d4513c0712f3197fb0f123 100644
--- a/Source/core/layout/LayoutAnalyzer.cpp
+++ b/Source/core/layout/LayoutAnalyzer.cpp
@@ -9,7 +9,6 @@
#include "core/layout/LayoutObject.h"
#include "core/layout/LayoutText.h"
#include "platform/TracedValue.h"
-#include "public/platform/Platform.h"
namespace blink {
@@ -81,30 +80,6 @@ void LayoutAnalyzer::pop(const LayoutObject& o)
--m_depth;
}
-void LayoutAnalyzer::recordCounters()
-{
- unsigned totalNodes = m_counters[TotalLayoutObjectsThatWereLaidOut];
- if (totalNodes < 100)
- return;
- unsigned usPerNode = (1000.0 * (currentTimeMS() - m_startMs)) / totalNodes;
- Platform::current()->histogramCustomCounts("Layout.MicroSecondsPerNode", usPerNode, 0, 1000 * 1000, 50);
- unsigned halfTotalNodes = totalNodes / 2;
- const char* histogram = nullptr;
- if (m_counters[LayoutAnalyzer::LayoutObjectsThatAreFloating] > halfTotalNodes) {
- histogram = "Layout.MicroSecondsPerFloat";
- } else if (m_counters[LayoutAnalyzer::LayoutObjectsThatAreTableCells] > halfTotalNodes) {
- histogram = "Layout.MicroSecondsPerTD";
- } else if (m_counters[LayoutAnalyzer::LayoutObjectsThatAreOutOfFlowPositioned] > halfTotalNodes) {
- histogram = "Layout.MicroSecondsPerPositioned";
- } else if (m_counters[LayoutAnalyzer::LayoutObjectsThatAreTextAndCanUseTheSimpleFontCodePath] > halfTotalNodes) {
- histogram = "Layout.MicroSecondsPerSimpleText";
- } else if (m_counters[LayoutAnalyzer::LayoutObjectsThatAreTextAndCanNotUseTheSimpleFontCodePath] > halfTotalNodes) {
- histogram = "Layout.MicroSecondsPerComplexText";
- }
- if (histogram)
- Platform::current()->histogramCustomCounts(histogram, usPerNode, 0, 1000 * 1000, 50);
-}
-
PassRefPtr<TracedValue> LayoutAnalyzer::toTracedValue()
{
RefPtr<TracedValue> tracedValue(TracedValue::create());
« no previous file with comments | « Source/core/layout/LayoutAnalyzer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698