File
Blob: src/workerd/util/use-perfetto-categories.h
| 1 | #pragma once |
| 2 | |
| 3 | #include <workerd/util/perfetto-tracing.h> |
| 4 | |
| 5 | // This header is to be imported by any translation unit (c++ file) that |
| 6 | // is instrumenting with perfetto traces (e.g. TRACE_EVENT). Header files |
| 7 | // that include instrumentation but are imported by embedders should instead |
| 8 | // use PERFETTO_USE_CATEGORY_FROM_NAMESPACE_SCOPED within function or block |
| 9 | // scopes that are to be instrumented. |
| 10 | |
| 11 | #ifdef WORKERD_USE_PERFETTO |
| 12 | PERFETTO_USE_CATEGORIES_FROM_NAMESPACE(workerd::traces); |
| 13 | #endif |