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