blob: 318e6e6916ba5dabfdb503adf412339adab5acdb (
plain) (
blame)
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
|
#ifndef TESTPROFILER_H
#define TESTPROFILER_H
#include "NvBlastPreprocessor.h"
#if NV_NVTX
#include "nvToolsExt.h"
NV_INLINE void platformZoneStart(const char* name) { nvtxRangePush(name); }
NV_INLINE void platformZoneEnd(const char*) { nvtxRangePop(); }
#elif NV_XBOXONE
#define NOMINMAX
#include "xboxone/NvBlastProfilerXB1.h"
#elif NV_PS4
#include "ps4/NvBlastProfilerPS4.h"
#else
NV_INLINE void platformZoneStart(const char*) { }
NV_INLINE void platformZoneEnd(const char*) { }
#endif
#define TEST_ZONE_BEGIN(name) platformZoneStart(name)
#define TEST_ZONE_END(name) platformZoneEnd(name)
#endif // TESTPROFILER_H
|