Files
weaseldb/src/perfetto_categories.hpp

19 lines
481 B
C++

#pragma once
#ifndef ENABLE_PERFETTO
#define ENABLE_PERFETTO 0
#endif
#if ENABLE_PERFETTO
#include <perfetto.h>
#else
#define PERFETTO_DEFINE_CATEGORIES(...)
#define PERFETTO_TRACK_EVENT_STATIC_STORAGE \
void perfetto_track_event_static_storage
#define TRACE_EVENT(...)
#endif
// Define perfetto categories - this can be included in multiple files
PERFETTO_DEFINE_CATEGORIES(
perfetto::Category("http").SetDescription("HTTP requests"));