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

Unified Diff: base/metrics/histogram.cc

Issue 148063009: first pass histogram shrink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « base/metrics/histogram.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/histogram.cc
diff --git a/base/metrics/histogram.cc b/base/metrics/histogram.cc
index fbe66d05d29fd3c2896f8499dd1dc07d9793d095..579bac48e2e6f9491c08119c01665e9bdcdddb49 100644
--- a/base/metrics/histogram.cc
+++ b/base/metrics/histogram.cc
@@ -123,6 +123,20 @@ HistogramBase* Histogram::FactoryTimeGet(const string& name,
bucket_count, flags);
}
+HistogramBase* Histogram::FactoryTimeGetAndAtomicRelease(
+ base::subtle::AtomicWord* atomic_histogram_pointer,
+ const string& name,
+ TimeDelta minimum,
+ TimeDelta maximum,
+ size_t bucket_count,
+ int32 flags) {
+ HistogramBase* retval = FactoryGet(name, minimum.InMilliseconds(), maximum.InMilliseconds(),
+ bucket_count, flags);
+ base::subtle::Release_Store(atomic_histogram_pointer,
+ reinterpret_cast<base::subtle::AtomicWord>(retval));
+ return retval;
+}
+
TimeTicks Histogram::DebugNow() {
#ifndef NDEBUG
return TimeTicks::Now();
« no previous file with comments | « base/metrics/histogram.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698