build: exclude Tracy from release builds

This commit is contained in:
psucien 2024-12-22 22:51:48 +01:00
parent 8abc43a03d
commit 2dc5755799
3 changed files with 17 additions and 1 deletions

View file

@ -14,7 +14,11 @@
#include <tracy/Tracy.hpp>
static inline bool IsProfilerConnected() {
#if TRACY_ENABLE
return tracy::GetProfiler().IsConnected();
#else
return false;
#endif
}
#define TRACY_GPU_ENABLED 0