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

Unified Diff: base/metrics/histogram_samples.h

Issue 1425533011: Support "shared" histograms between processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shmem-alloc
Patch Set: added a couple tests (and fixed related issues) 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_samples.h
diff --git a/base/metrics/histogram_samples.h b/base/metrics/histogram_samples.h
index bbd0e6d24e2e58f05d300f5c0661825f34605b77..76f84ff571f27d2a8f10852e0d11e1f1027c348e 100644
--- a/base/metrics/histogram_samples.h
+++ b/base/metrics/histogram_samples.h
@@ -31,11 +31,8 @@ class BASE_EXPORT HistogramSamples {
// accuracy of this value; there may be races during histogram
// accumulation and snapshotting that we choose to accept. It should
// be treated as approximate.
-#ifdef ARCH_CPU_64_BITS
- subtle::Atomic64 sum;
-#else // No Atomic64 on 32-bit platforms.
+ // TODO(bcwhite): Change this to std::atomic<uint64>.
int64 sum;
-#endif
// A "redundant" count helps identify memory corruption. It redundantly
// stores the total number of samples accumulated in the histogram. We

Powered by Google App Engine
This is Rietveld 408576698