-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtracing.h
38 lines (24 loc) · 1.01 KB
/
tracing.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#ifdef KILT_TRACE
#include <kilt_tracer.h>
#else
#define TRACE_EVENT(EVENT)
#define TRACE_EVENT_ON_DEVICE(EVENT, DEVICE)
#define TRACE_EVENT_INSTANT(EVENT)
#define TRACE_EVENT_INSTANT_ON_DEVICE(EVENT, DEVICE)
#define TRACE_BATCH_EVENT(EVENT, BATCH_ID)
#define TRACE_BATCH_EVENT_ON_DEVICE(EVENT, BATCH_ID, DEVICE)
#define TRACE_BATCH_EVENT_INSTANT(EVENT, BATCH_ID)
#define TRACE_BATCH_EVENT_INSTANT_ON_DEVICE(EVENT, BATCH_ID, DEVICE)
#define LONG_TRACE_EVENT_BEGIN(EVENT)
#define LONG_TRACE_EVENT_ON_DEVICE_BEGIN(EVENT, DEVICE)
#define LONG_TRACE_BATCH_EVENT_BEGIN(EVENT, BATCH_ID)
#define LONG_TRACE_BATCH_EVENT_ON_DEVICE_BEGIN(EVENT, BATCH_ID, DEVICE)
#define LONG_TRACE_EVENT_END(EVENT)
#define LONG_TRACE_EVENT_ON_DEVICE_END(EVENT, DEVICE)
#define LONG_TRACE_BATCH_EVENT_END(EVENT, BATCH_ID)
#define LONG_TRACE_BATCH_EVENT_ON_DEVICE_END(EVENT, BATCH_ID, DEVICE)
#define TRACE_EVENT_END(EVENT)
#define TRACE_COUNTER(EVENT, VALUE)
#define TRACE_COUNTER_ON_DEVICE(EVENT, DEVICE, VALUE)
#endif // KILT_TRACE