1 #ifndef _NO_VRF_PROFILER_
41 static void initializeConsoleCommands();
49 static void setCollectTracyStats(
bool b);
57 static void setCollectTracyStatsWithoutStartup(
bool b);
66 static void setStartupTracyWithoutCollect(
bool b);
71 static bool collectTracyStats();
81 static int tracyModuleLevel(
size_t moduleNameHash);
95 static size_t addExternalModule(
const std::string& Module);
103 static unsigned int tracyCallstackDepth();
110 static void setTracyCallstackDepth(
unsigned int depth);
140 #include <tracy/MAKTracyDefines.h>
141 #include <tracy/Tracy.hpp>
142 #include <client/TracyProfiler.hpp>
146 zone.Text(text, strlen(text));
150 zone.Text(text.c_str(), text.size());
159 #define DtPROFILEzone \
160 ZoneNamedS(___tracy_scoped_zone, makVrf::DtProfiler::tracyCallstackDepth(), makVrf::DtProfiler::collectTracyStats());
167 #define DtPROFILE(name) \
169 ___tracy_scoped_zone, name, makVrf::DtProfiler::tracyCallstackDepth(), makVrf::DtProfiler::collectTracyStats());
175 #define DtPROFILEC(name, color) \
176 ZoneNamedNCS(___tracy_scoped_zone, name, color, makVrf::DtProfiler::tracyCallstackDepth(), \
177 makVrf::DtProfiler::collectTracyStats());
190 #define DtPROFILELEVEL(name, moduleName, level) \
191 ZoneNamedNS(___tracy_scoped_zone, name, makVrf::DtProfiler::tracyCallstackDepth(), \
192 (makVrf::DtProfiler::collectTracyStats() && (makVrf::DtProfiler::tracyModuleLevel(moduleName) >= level)));
200 #define DtPROFILELEVELC(name, color, moduleName, level) \
201 ZoneNamedNCS(___tracy_scoped_zone, name, color, makVrf::DtProfiler::tracyCallstackDepth(), \
202 (makVrf::DtProfiler::collectTracyStats() && (makVrf::DtProfiler::tracyModuleLevel(moduleName) >= level)));
211 #define DtPROFILE_SECTION(name) \
213 ZoneNamedNS(___tracy_scoped_zone, name, makVrf::DtProfiler::tracyCallstackDepth(), \
214 makVrf::DtProfiler::collectTracyStats());
219 #define DtPROFILE_ZONE_TEXT(text) DtZoneSetText(___tracy_scoped_zone, text)
222 #define DtPROFILE_SECTION_END }
225 #define DtVRF_PROFILE(name) DtPROFILE(name)
228 #define DtVRF_PROFILE_FILE(name) DtPROFILE(name)
234 #define DtProfilerFrameMark \
235 if (makVrf::DtProfiler::collectTracyStats()) \
244 #define DtProfilerPlot(x, y) TracyPlot(x, y)
249 #define DtProfilerThreadName(name) tracy::SetThreadName(name);
255 #define DtProfilerMessage(str, stringLen) TracyMessage(str, stringLen)
260 #define DtProfilerFrameMark
261 #define DtPROFILEzone
262 #define DtPROFILE(name)
263 #define DtPROFILEC(name, color)
264 #define DtPROFILE_SECTION(name)
265 #define DtPROFILE_SECTION_END
266 #define DtVRF_PROFILE(name)
267 #define DtVRF_PROFILE_FILE(name)
void DtZoneSetText(tracy::ScopedZone &zone, const char *text)
tracy
Definition: profiler.h:144
static unsigned int theTracyCallstackDepth
Current callstack capture depth applied to recorded zones.
Definition: profiler.h:123
static size_t theVrfUtilModuleName
Hash of the "vrfutil" module name, for use with the leveled markers.
Definition: profiler.h:116
IMGUI_API void Shutdown(ImGuiContext *context)
Static facade controlling the Tracy performance profiler in VR-Forces.
Definition: profiler.h:34
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
static size_t theTerrainModuleName
Hash of the "terrain" module name, for use with the leveled markers.
Definition: profiler.h:113