Add forgotten file
This commit is contained in:
14
src/perfetto_categories.hpp
Normal file
14
src/perfetto_categories.hpp
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define ENABLE_PERFETTO 1
|
||||||
|
|
||||||
|
#if ENABLE_PERFETTO
|
||||||
|
#include <perfetto.h>
|
||||||
|
#else
|
||||||
|
#define PERFETTO_DEFINE_CATEGORIES(...)
|
||||||
|
#define TRACE_EVENT(...)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// Define perfetto categories - this can be included in multiple files
|
||||||
|
PERFETTO_DEFINE_CATEGORIES(
|
||||||
|
perfetto::Category("http").SetDescription("HTTP requests"));
|
||||||
Reference in New Issue
Block a user