Index: Source/WebCore/page/FeatureObserver.cpp |
=================================================================== |
--- Source/WebCore/page/FeatureObserver.cpp (revision 143882) |
+++ Source/WebCore/page/FeatureObserver.cpp (working copy) |
@@ -42,6 +42,12 @@ |
// We always log PageDestruction so that we have a scale for the rest of the features. |
HistogramSupport::histogramEnumeration("WebCore.FeatureObserver", PageDestruction, NumberOfFeatures); |
+ updateMeasurements(); |
+} |
+ |
+void FeatureObserver::updateMeasurements() |
+{ |
+ HistogramSupport::histogramEnumeration("WebCore.FeatureObserver", PageVisits, NumberOfFeatures); |
if (!m_featureBits) |
return; |
@@ -49,8 +55,15 @@ |
if (m_featureBits->quickGet(i)) |
HistogramSupport::histogramEnumeration("WebCore.FeatureObserver", i, NumberOfFeatures); |
} |
+ |
+ m_featureBits->clearAll(); |
} |
+void FeatureObserver::didCommitLoad() |
+{ |
+ updateMeasurements(); |
+} |
+ |
void FeatureObserver::observe(Document* document, Feature feature) |
{ |
if (!document) |