// Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_TRACING_TRACE_CATEGORIES_H_ #define V8_TRACING_TRACE_CATEGORIES_H_ #include "src/base/macros.h" #if defined(V8_USE_PERFETTO) // For now most of v8 uses legacy trace events. #define PERFETTO_ENABLE_LEGACY_TRACE_EVENTS … #include "perfetto/tracing/track_event.h" #include "perfetto/tracing/track_event_legacy.h" // Trace category prefixes used in tests. PERFETTO_DEFINE_TEST_CATEGORY_PREFIXES(…); // List of categories used by built-in V8 trace events. // clang-format off PERFETTO_DEFINE_CATEGORIES_IN_NAMESPACE_WITH_ATTRS(…); // clang-format on PERFETTO_USE_CATEGORIES_FROM_NAMESPACE(…); #endif // defined(V8_USE_PERFETTO) #endif // V8_TRACING_TRACE_CATEGORIES_H_