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

Unified Diff: base/metrics/histogram_base.h

Issue 1471073007: Reorganize histograms for persistence. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shmem-alloc
Patch Set: added GN changes Created 5 years, 1 month 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 d246691ca257093851f7dc7c6393d7af51a3285b..271df981591cc24fd0b0fd695eb27bc844798d0d 100644
--- a/base/metrics/histogram_base.h
+++ b/base/metrics/histogram_base.h
@@ -104,6 +104,9 @@ class BASE_EXPORT HistogramBase {
// in more compact machine code being generated by the macros.
void CheckName(const StringPiece& name) const;
+ // Get a unique ID for this histogram's samples.
+ virtual uint64_t id() const = 0;
Alexei Svitkine (slow) 2015/11/25 18:05:27 I think it's better to be explicit about what this
bcwhite 2015/11/25 21:54:17 Done.
+
// Operations with Flags enum.
int32_t flags() const { return subtle::NoBarrier_Load(&flags_); }
void SetFlags(int32_t flags);

Powered by Google App Engine
This is Rietveld 408576698