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

Unified Diff: base/metrics/sparse_histogram.h

Issue 1485763002: Merge multiple histogram snapshots into single one for reporting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shared-histograms
Patch Set: addressed review comments by Alexei Created 4 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
Index: base/metrics/sparse_histogram.h
diff --git a/base/metrics/sparse_histogram.h b/base/metrics/sparse_histogram.h
index 04909c0859a5e948366fde87fd88faca142397e2..7f363133802a0219f6ca3f029d53e4ae8101b881 100644
--- a/base/metrics/sparse_histogram.h
+++ b/base/metrics/sparse_histogram.h
@@ -71,6 +71,7 @@ class BASE_EXPORT SparseHistogram : public HistogramBase {
void AddSamples(const HistogramSamples& samples) override;
bool AddSamplesFromPickle(base::PickleIterator* iter) override;
scoped_ptr<HistogramSamples> SnapshotSamples() const override;
+ scoped_ptr<HistogramSamples> SnapshotDelta() override;
void WriteHTMLGraph(std::string* output) const override;
void WriteAscii(std::string* output) const override;
@@ -107,6 +108,7 @@ class BASE_EXPORT SparseHistogram : public HistogramBase {
mutable base::Lock lock_;
SampleMap samples_;
+ SampleMap logged_samples_;
DISALLOW_COPY_AND_ASSIGN(SparseHistogram);
};

Powered by Google App Engine
This is Rietveld 408576698