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

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, 5 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 | « chrome/common/metrics/metrics_service_base.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/metrics/metrics_service_base.cc
===================================================================
--- chrome/common/metrics/metrics_service_base.cc (revision 146279)
+++ 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);
« no previous file with comments | « chrome/common/metrics/metrics_service_base.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698