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

Unified Diff: Source/core/page/UseCounter.cpp

Issue 44453002: Remove HistogramSupport abstraction layer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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/page/PagePopupController.cpp ('k') | Source/core/platform/HistogramSupport.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/UseCounter.cpp
diff --git a/Source/core/page/UseCounter.cpp b/Source/core/page/UseCounter.cpp
index a144b7a39eb2346949f250845b93ea4102760764..e821e0f14abe231f6998f6651ae8b507fa1b0475 100644
--- a/Source/core/page/UseCounter.cpp
+++ b/Source/core/page/UseCounter.cpp
@@ -34,7 +34,7 @@
#include "core/frame/DOMWindow.h"
#include "core/page/Page.h"
#include "core/page/PageConsole.h"
-#include "core/platform/HistogramSupport.h"
+#include "public/platform/Platform.h"
#include "wtf/text/WTFString.h"
namespace WebCore {
@@ -529,19 +529,19 @@ UseCounter::UseCounter()
UseCounter::~UseCounter()
{
// We always log PageDestruction so that we have a scale for the rest of the features.
- HistogramSupport::histogramEnumeration("WebCore.FeatureObserver", PageDestruction, NumberOfFeatures);
+ WebKit::Platform::current()->histogramEnumeration("WebCore.FeatureObserver", PageDestruction, NumberOfFeatures);
updateMeasurements();
}
void UseCounter::updateMeasurements()
{
- HistogramSupport::histogramEnumeration("WebCore.FeatureObserver", PageVisits, NumberOfFeatures);
+ WebKit::Platform::current()->histogramEnumeration("WebCore.FeatureObserver", PageVisits, NumberOfFeatures);
if (m_countBits) {
for (unsigned i = 0; i < NumberOfFeatures; ++i) {
if (m_countBits->quickGet(i))
- HistogramSupport::histogramEnumeration("WebCore.FeatureObserver", i, NumberOfFeatures);
+ WebKit::Platform::current()->histogramEnumeration("WebCore.FeatureObserver", i, NumberOfFeatures);
}
// Clearing count bits is timing sensitive.
m_countBits->clearAll();
@@ -554,13 +554,13 @@ void UseCounter::updateMeasurements()
for (int i = firstCSSProperty; i <= lastCSSProperty; ++i) {
if (m_CSSFeatureBits.quickGet(i)) {
int cssSampleId = mapCSSPropertyIdToCSSSampleIdForHistogram(i);
- HistogramSupport::histogramEnumeration("WebCore.FeatureObserver.CSSProperties", cssSampleId, maximumCSSSampleId());
+ WebKit::Platform::current()->histogramEnumeration("WebCore.FeatureObserver.CSSProperties", cssSampleId, maximumCSSSampleId());
needsPagesMeasuredUpdate = true;
}
}
if (needsPagesMeasuredUpdate)
- HistogramSupport::histogramEnumeration("WebCore.FeatureObserver.CSSProperties", totalPagesMeasuredCSSSampleId(), maximumCSSSampleId());
+ WebKit::Platform::current()->histogramEnumeration("WebCore.FeatureObserver.CSSProperties", totalPagesMeasuredCSSSampleId(), maximumCSSSampleId());
m_CSSFeatureBits.clearAll();
}
« no previous file with comments | « Source/core/page/PagePopupController.cpp ('k') | Source/core/platform/HistogramSupport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698