Go to the documentation of this file.
11 #ifndef __CE_Tracing__
12 #define __CE_Tracing__
18 #include <tracy/TracyOpenCL.hpp>
22 #define ceTraceContext(c, x) TracyCLContext(c, x)
23 #define ceTraceDestroy(c) TracyCLDestroy(c)
25 #define ceTraceZoneSetEvent(e) TracyCLZoneSetEvent(e)
26 #define ceTraceCollect(c) if (utTraceFlag(CL_MEMORY) || utTraceFlag(CL_KERNELS)) TracyCLCollect(c)
28 #define ceTraceZoneKernel(c, x) TracyCLNamedZone(c, __tracy_gpu_zone, x, utTraceFlag(CL_KERNELS))
29 #define ceTraceZoneKernelC(c, x, y) TracyCLNamedZoneC(c, __tracy_gpu_zone, x, y, utTraceFlag(CL_KERNELS))
30 #define ceTraceZoneKernelTransient(c, x) TracyCLZoneTransient(c, __tracy_gpu_zone, x, utTraceFlag(CL_KERNELS))
31 #define ceTraceZoneMem(c, x) TracyCLNamedZone(c, __tracy_gpu_zone, x, utTraceFlag(CL_MEMORY))
32 #define ceTraceZoneMemC(c, x, y) TracyCLNamedZoneC(c, __tracy_gpu_zone, x, y, utTraceFlag(CL_MEMORY))
34 #ifdef TRACY_ON_DEMAND
35 #define ceTraceMemEvent nullptr,(utTraceFlag(CL_MEMORY) && utTraceIsConnected ? &event : nullptr)
37 #define ceTraceMemEvent nullptr,&event
40 #ifdef TRACY_HAS_CALLSTACK
42 #define ceTraceZoneKernelS(c, x, d) TracyCLNamedZoneS(c, __tracy_gpu_zone, x, d, utTraceFlag(CL_KERNELS))
43 #define ceTraceZoneKernelCS(c, x, y, d) TracyCLNamedZoneS(c, __tracy_gpu_zone, x, d, utTraceFlag(CL_KERNELS))
44 #define ceTraceZoneKernelTransientS(c, x, d) TracyCLZoneTransientS(c, __tracy_gpu_zone, x, d, utTraceFlag(CL_KERNELS))
45 #define ceTraceZoneMemS(c, x, d) TracyCLNamedZoneCS(c, __tracy_gpu_zone, x, d, utTraceFlag(CL_MEMORY))
46 #define ceTraceZoneMemCS(c, x, y, d) TracyCLNamedZoneCS(c, __tracy_gpu_zone, x, y, d, utTraceFlag(CL_MEMORY))
50 #define ceTraceZoneKernelS(c, x, d) ceTraceZoneKernel(c, x)
51 #define ceTraceZoneKernelCS(c, x, y, d) ceTraceZoneKernelC(c, x, y)
52 #define ceTraceZoneKernelTransientS(c, x, d) ceTraceZoneKernelTransient(c, x)
53 #define ceTraceZoneMemS(c, x, d) ceTraceZoneMem(c, x)
54 #define ceTraceZoneMemCS(c, x, y, d) ceTraceZoneMemC(c, x, y)
61 #define ceTraceContext(c, x) nullptr
62 #define ceTraceDestroy(c)
64 #define ceTraceZoneSetEvent(e)
65 #define ceTraceCollect(c)
67 #define ceTraceZoneKernel(c, x)
68 #define ceTraceZoneKernelC(c, x, y)
69 #define ceTraceZoneKernelTransient(c, x)
70 #define ceTraceZoneMem(c, x)
71 #define ceTraceZoneMemC(c, x, y)
73 #define ceTraceMemEvent nullptr,nullptr
75 #define ceTraceZoneKernelS(c, x, d)
76 #define ceTraceZoneKernelCS(c, x, y, d)
77 #define ceTraceZoneKernelTransientS(c, x, d)
78 #define ceTraceZoneMemS(c, x, d)
79 #define ceTraceZoneMemCS(c, x, y, d)