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

Unified Diff: base/metrics/histogram_base.h

Issue 1891913002: Support saving browser metrics to disk and reading them during next run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed some build problems Created 4 years, 8 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/histogram_base.h
diff --git a/base/metrics/histogram_base.h b/base/metrics/histogram_base.h
index 24c104cee4f204ee8dd93f2b40a16306f7d53844..d7cf9fb8096eae0e62e218c4a210f4a90461e8e1 100644
--- a/base/metrics/histogram_base.h
+++ b/base/metrics/histogram_base.h
@@ -202,6 +202,10 @@ class BASE_EXPORT HistogramBase {
// changed since the last call.
virtual std::unique_ptr<HistogramSamples> SnapshotDelta() = 0;
+ // Calculate the difference in histogram counts since the previous call to
+ // SnapshotDelta(). Calls to this are idempotent.
+ virtual std::unique_ptr<HistogramSamples> SnapshotDifference() const = 0;
Ilya Sherman 2016/04/19 00:57:46 Hmm, I think the names SnapshotDelta() vs Snapshot
bcwhite 2016/04/19 16:33:37 How about "UploadDelta" (for the previously existi
+
// The following methods provide graphical histogram displays.
virtual void WriteHTMLGraph(std::string* output) const = 0;
virtual void WriteAscii(std::string* output) const = 0;

Powered by Google App Engine
This is Rietveld 408576698