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

Unified Diff: base/debug/trace_event_impl.h

Issue 109933006: Implement sampling profiler (chromium side change) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: first CL Created 7 years 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/debug/trace_event_impl.h
diff --git a/base/debug/trace_event_impl.h b/base/debug/trace_event_impl.h
index 129b51d9a6938f1c92b7dd40b6178bdcf2e83b28..0af5f00f7acda7fd691da2f12ec4cac4e97f77e5 100644
--- a/base/debug/trace_event_impl.h
+++ b/base/debug/trace_event_impl.h
@@ -636,9 +636,7 @@ class BASE_EXPORT TraceLog {
bool CheckGeneration(int generation) const {
return generation == this->generation();
}
- int NextGeneration() {
- return static_cast<int>(subtle::NoBarrier_AtomicIncrement(&generation_, 1));
- }
+ int NextGeneration();
TimeTicks OffsetNow() const {
return OffsetTimestamp(TimeTicks::NowFromSystemTraceTime());

Powered by Google App Engine
This is Rietveld 408576698