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

Unified Diff: Source/WebCore/page/FeatureObserver.cpp

Issue 12340046: Merge 143363 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 10 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/WebCore/page/FeatureObserver.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « Source/WebCore/page/FeatureObserver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698