mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 07:55:35 +00:00
Tracing
This commit is contained in:
parent
63a30ae34f
commit
121c9e2ceb
@ -1,4 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
NAMESPACE_BEGIN(Grid);
|
||||||
|
|
||||||
#ifdef GRID_TRACING_NVTX
|
#ifdef GRID_TRACING_NVTX
|
||||||
#include <nvToolsExt.h>
|
#include <nvToolsExt.h>
|
||||||
class GridTracer {
|
class GridTracer {
|
||||||
@ -64,3 +67,4 @@ inline void traceStop(int ID) { }
|
|||||||
#else
|
#else
|
||||||
#define GRID_TRACE(name) GridTracer uniq_name_using_macros##__COUNTER__(name);
|
#define GRID_TRACE(name) GridTracer uniq_name_using_macros##__COUNTER__(name);
|
||||||
#endif
|
#endif
|
||||||
|
NAMESPACE_END(Grid);
|
||||||
|
Loading…
Reference in New Issue
Block a user