summaryrefslogtreecommitdiffstats
path: root/base/debug/trace_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/debug/trace_event.h')
-rw-r--r--base/debug/trace_event.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/base/debug/trace_event.h b/base/debug/trace_event.h
index 3459a94..0636180 100644
--- a/base/debug/trace_event.h
+++ b/base/debug/trace_event.h
@@ -69,6 +69,13 @@
// Defines visibility for classes in trace_event_internal.h
#define TRACE_EVENT_API_CLASS_EXPORT BASE_EXPORT
+// The thread buckets for the sampling profiler.
+TRACE_EVENT_API_CLASS_EXPORT extern TRACE_EVENT_API_ATOMIC_WORD g_trace_state0;
+TRACE_EVENT_API_CLASS_EXPORT extern TRACE_EVENT_API_ATOMIC_WORD g_trace_state1;
+TRACE_EVENT_API_CLASS_EXPORT extern TRACE_EVENT_API_ATOMIC_WORD g_trace_state2;
+#define TRACE_EVENT_API_THREAD_BUCKET(thread_bucket) \
+ g_trace_state##thread_bucket
+
////////////////////////////////////////////////////////////////////////////////
#include "base/debug/trace_event_internal.h"