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

Unified Diff: chrome/common/metrics/metrics_service_base.cc

Issue 10454086: Histograms - Support histograms for Plugins, GPU (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
Index: chrome/common/metrics/metrics_service_base.cc
===================================================================
--- chrome/common/metrics/metrics_service_base.cc (revision 140625)
+++ chrome/common/metrics/metrics_service_base.cc (working copy)
@@ -10,7 +10,8 @@
using base::Histogram;
-MetricsServiceBase::MetricsServiceBase() {
+MetricsServiceBase::MetricsServiceBase()
+ : ALLOW_THIS_IN_INITIALIZER_LIST(histogram_snapshot_manager_(this)) {
}
MetricsServiceBase::~MetricsServiceBase() {
@@ -31,10 +32,10 @@
void MetricsServiceBase::RecordCurrentHistograms() {
DCHECK(log_manager_.current_log());
- TransmitAllHistograms(base::Histogram::kNoFlags, true);
+ histogram_snapshot_manager_.PrepareDeltas(base::Histogram::kNoFlags, true);
}
-void MetricsServiceBase::TransmitHistogramDelta(
+void MetricsServiceBase::RecordDelta(
const base::Histogram& histogram,
const base::Histogram::SampleSet& snapshot) {
log_manager_.current_log()->RecordHistogramDelta(histogram, snapshot);

Powered by Google App Engine
This is Rietveld 408576698