xref: /aosp_15_r20/external/cronet/base/trace_event/base_tracing.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1*6777b538SAndroid Build Coastguard Worker // Copyright 2020 The Chromium Authors
2*6777b538SAndroid Build Coastguard Worker // Use of this source code is governed by a BSD-style license that can be
3*6777b538SAndroid Build Coastguard Worker // found in the LICENSE file.
4*6777b538SAndroid Build Coastguard Worker 
5*6777b538SAndroid Build Coastguard Worker #ifndef BASE_TRACE_EVENT_BASE_TRACING_H_
6*6777b538SAndroid Build Coastguard Worker #define BASE_TRACE_EVENT_BASE_TRACING_H_
7*6777b538SAndroid Build Coastguard Worker 
8*6777b538SAndroid Build Coastguard Worker // Proxy header that provides tracing instrumentation for //base code. When
9*6777b538SAndroid Build Coastguard Worker // tracing support is disabled via the gn flag enable_base_tracing, this header
10*6777b538SAndroid Build Coastguard Worker // provides a mock implementation of the relevant trace macros instead, which
11*6777b538SAndroid Build Coastguard Worker // causes the instrumentation in //base to be compiled into no-ops.
12*6777b538SAndroid Build Coastguard Worker 
13*6777b538SAndroid Build Coastguard Worker #include "base/tracing_buildflags.h"
14*6777b538SAndroid Build Coastguard Worker 
15*6777b538SAndroid Build Coastguard Worker #if BUILDFLAG(ENABLE_BASE_TRACING)
16*6777b538SAndroid Build Coastguard Worker // Update the check in //base/PRESUBMIT.py when adding new headers here.
17*6777b538SAndroid Build Coastguard Worker // TODO(crbug/1006541): Switch to perfetto for trace event implementation.
18*6777b538SAndroid Build Coastguard Worker #include "base/trace_event/heap_profiler.h"               // nogncheck
19*6777b538SAndroid Build Coastguard Worker #include "base/trace_event/interned_args_helper.h"        // nogncheck
20*6777b538SAndroid Build Coastguard Worker #include "base/trace_event/memory_allocator_dump_guid.h"  // nogncheck
21*6777b538SAndroid Build Coastguard Worker #include "base/trace_event/memory_dump_manager.h"         // nogncheck
22*6777b538SAndroid Build Coastguard Worker #include "base/trace_event/memory_dump_provider.h"        // nogncheck
23*6777b538SAndroid Build Coastguard Worker #include "base/trace_event/trace_event.h"                 // nogncheck
24*6777b538SAndroid Build Coastguard Worker #include "base/trace_event/trace_id_helper.h"             // nogncheck
25*6777b538SAndroid Build Coastguard Worker #include "base/trace_event/traced_value.h"                // nogncheck
26*6777b538SAndroid Build Coastguard Worker #include "base/trace_event/typed_macros.h"                // nogncheck
27*6777b538SAndroid Build Coastguard Worker #include "third_party/perfetto/include/perfetto/tracing/traced_value.h"  // nogncheck
28*6777b538SAndroid Build Coastguard Worker #include "third_party/perfetto/protos/perfetto/trace/track_event/chrome_process_descriptor.pbzero.h"  // nogncheck
29*6777b538SAndroid Build Coastguard Worker #include "third_party/perfetto/protos/perfetto/trace/track_event/log_message.pbzero.h"  // nogncheck
30*6777b538SAndroid Build Coastguard Worker #include "third_party/perfetto/protos/perfetto/trace/track_event/task_execution.pbzero.h"  // nogncheck
31*6777b538SAndroid Build Coastguard Worker #else  // BUILDFLAG(ENABLE_BASE_TRACING)
32*6777b538SAndroid Build Coastguard Worker #include "base/trace_event/trace_event_stub.h"
33*6777b538SAndroid Build Coastguard Worker #endif  // BUILDFLAG(ENABLE_BASE_TRACING)
34*6777b538SAndroid Build Coastguard Worker 
35*6777b538SAndroid Build Coastguard Worker #endif  // BASE_TRACE_EVENT_BASE_TRACING_H_
36