VR-Vantage
Loading...
Searching...
No Matches
DtProfiler.h File Reference

Contains the classes allowing the profiler to work, DtProfileManager, DtProfileSample, and DtProfileIterator. More...

Go to the source code of this file.

Classes

class  makVrv::DtProfileSample
struct  makVrv::DtProfileTarget< Enabled >
struct  makVrv::DtProfileTarget< true >
class  makVrv::DtPerfomanceStatSample

Namespaces

namespace  makVrv
 Contains DtCreateSensorFieldOfViewCommand and DtCreateSensorFieldOfViewCommandCreator class declarations.

Macros

#define DTPROFILE_TRACYCOLOR_BALLISTICS   0x00bfff
#define DTPROFILE_TRACYCOLOR_SILVERLINING   0x0b8bf8
#define DTPROFILE_TRACYCOLOR_TRITON   0x123f7b
#define DTPROFILE_TRACYCOLOR_SPEEDTREE   0x0f502d
#define DTPROFILE_TRACYCOLOR_INDIRECT   0x3333cc
#define DTPROFILE_TRACYCOLOR_LIGHTING   0xffaa00
#define DTPROFILE_TRACYCOLOR_POSTEFFECT   0xffb31a
#define DTPROFILE_TRACYCOLOR_VIRTUALREALITY   0xa3297a
#define DTPROFILE_TRACYCOLOR_GLCONTEXT   0xe68a00
#define DTPROFILE_TRACYCOLOR_RENDERER   0x0b9900
#define TRACY_ENABLE
#define DtPROFILEzone   ZoneNamedS(___tracy_scoped_zone, makVrv::DtProfileManager::tracyCallstackDepth(), makVrv::DtProfileManager::collectTracyStats());
#define DtPROFILE(name)
#define DtPROFILEC(name, color)
#define DtPROFILE_SECTION(name)
#define DtProfilerFrameMark   if(makVrv::DtProfileManager::tracyProfilerInitialized()) { FrameMark; }
#define DtProfilerPlot(x, y)
#define DtProfilerThreadName(name)
#define DtProfilerMessage(str, stringLen)
#define DtProfilerText(text)
#define DtProfilerName(text)
#define DtPROFILE_RESTRICTED(name, target)
#define DtPROFILE_X(name, line)
#define DtPROFILE_ACTUAL(name, line)
#define DtPROFILE_SECTION_END   }
#define DtPERFORMANCE_STAT(name)
#define DtPERFORMANCE_STAT_X(name, line)
#define DtPERFORMANCE_STAT_ACTUAL(name, line)

Functions

void _zoneSetText (tracy::ScopedZone &zone, const char *text)
void _zoneSetText (tracy::ScopedZone &zone, const std::string &text)
void _zoneSetName (tracy::ScopedZone &zone, const char *text)
void _zoneSetName (tracy::ScopedZone &zone, const std::string &text)
void DT_DLL_VRVUTIL makVrv::SetThreadName (const char *name)

Variables

const bool Profile_DtSceneObjectUpdater = false
const bool Profile_DtSurfaceClampingUpdater = false
const bool Profile_DtOsgCullVisitor = false

Detailed Description

Contains the classes allowing the profiler to work, DtProfileManager, DtProfileSample, and DtProfileIterator.

Macro Definition Documentation

◆ DTPROFILE_TRACYCOLOR_BALLISTICS

#define DTPROFILE_TRACYCOLOR_BALLISTICS   0x00bfff

◆ DTPROFILE_TRACYCOLOR_SILVERLINING

#define DTPROFILE_TRACYCOLOR_SILVERLINING   0x0b8bf8

◆ DTPROFILE_TRACYCOLOR_TRITON

#define DTPROFILE_TRACYCOLOR_TRITON   0x123f7b

◆ DTPROFILE_TRACYCOLOR_SPEEDTREE

#define DTPROFILE_TRACYCOLOR_SPEEDTREE   0x0f502d

◆ DTPROFILE_TRACYCOLOR_INDIRECT

#define DTPROFILE_TRACYCOLOR_INDIRECT   0x3333cc

◆ DTPROFILE_TRACYCOLOR_LIGHTING

#define DTPROFILE_TRACYCOLOR_LIGHTING   0xffaa00

◆ DTPROFILE_TRACYCOLOR_POSTEFFECT

#define DTPROFILE_TRACYCOLOR_POSTEFFECT   0xffb31a

◆ DTPROFILE_TRACYCOLOR_VIRTUALREALITY

#define DTPROFILE_TRACYCOLOR_VIRTUALREALITY   0xa3297a

◆ DTPROFILE_TRACYCOLOR_GLCONTEXT

#define DTPROFILE_TRACYCOLOR_GLCONTEXT   0xe68a00

◆ DTPROFILE_TRACYCOLOR_RENDERER

#define DTPROFILE_TRACYCOLOR_RENDERER   0x0b9900

◆ TRACY_ENABLE

#define TRACY_ENABLE

◆ DtPROFILEzone

◆ DtPROFILE

#define DtPROFILE ( name)
Value:
ZoneNamedNS(___tracy_scoped_zone, name, makVrv::DtProfileManager::tracyCallstackDepth(), makVrv::DtProfileManager::collectTracyStats()); DtPROFILE_X(name, __LINE__);
#define DtPROFILE_X(name, line)
Definition DtProfiler.h:125
static bool collectTracyStats()
are tracy stats active
Definition DtProfileManager.h:108
static int tracyCallstackDepth()
Definition DtProfileManager.h:143

Referenced by makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection::tick().

◆ DtPROFILEC

#define DtPROFILEC ( name,
color )
Value:
ZoneNamedNCS(___tracy_scoped_zone, name, color, makVrv::DtProfileManager::tracyCallstackDepth(), makVrv::DtProfileManager::collectTracyStats()); DtPROFILE_X(name, __LINE__);

◆ DtPROFILE_SECTION

#define DtPROFILE_SECTION ( name)
Value:
Definition DtProfiler.h:151

◆ DtProfilerFrameMark

#define DtProfilerFrameMark   if(makVrv::DtProfileManager::tracyProfilerInitialized()) { FrameMark; }

◆ DtProfilerPlot

#define DtProfilerPlot ( x,
y )
Value:

◆ DtProfilerThreadName

#define DtProfilerThreadName ( name)
Value:
tracy::SetThreadName(name );

◆ DtProfilerMessage

#define DtProfilerMessage ( str,
stringLen )
Value:
TracyMessage(str, stringLen)

◆ DtProfilerText

#define DtProfilerText ( text)
Value:
_zoneSetText(___tracy_scoped_zone, text)
void _zoneSetText(tracy::ScopedZone &zone, const char *text)
Definition DtProfiler.h:89

◆ DtProfilerName

#define DtProfilerName ( text)
Value:
_zoneSetName(___tracy_scoped_zone, text)
void _zoneSetName(tracy::ScopedZone &zone, const char *text)
Definition DtProfiler.h:98

◆ DtPROFILE_RESTRICTED

#define DtPROFILE_RESTRICTED ( name,
target )
Value:
makVrv::DtProfileTarget<target> _profileTarget##line(name);
Definition DtProfiler.h:172

◆ DtPROFILE_X

#define DtPROFILE_X ( name,
line )
Value:
DtPROFILE_ACTUAL(name, line)
#define DtPROFILE_ACTUAL(name, line)
Definition DtProfiler.h:126

◆ DtPROFILE_ACTUAL

#define DtPROFILE_ACTUAL ( name,
line )
Value:
makVrv::DtProfileSample _profileSample##line(name);

◆ DtPROFILE_SECTION_END

#define DtPROFILE_SECTION_END   }

◆ DtPERFORMANCE_STAT

#define DtPERFORMANCE_STAT ( name)
Value:
DtPERFORMANCE_STAT_X(name, __LINE__)
#define DtPERFORMANCE_STAT_X(name, line)
Definition DtProfiler.h:131

◆ DtPERFORMANCE_STAT_X

#define DtPERFORMANCE_STAT_X ( name,
line )
Value:
#define DtPERFORMANCE_STAT_ACTUAL(name, line)
Definition DtProfiler.h:132

◆ DtPERFORMANCE_STAT_ACTUAL

#define DtPERFORMANCE_STAT_ACTUAL ( name,
line )
Value:
makVrv::DtPerfomanceStatSample _performanceStatSample##line(name);
Definition DtProfiler.h:197

Function Documentation

◆ _zoneSetText() [1/2]

void _zoneSetText ( tracy::ScopedZone & zone,
const char * text )
inline

◆ _zoneSetText() [2/2]

void _zoneSetText ( tracy::ScopedZone & zone,
const std::string & text )
inline

◆ _zoneSetName() [1/2]

void _zoneSetName ( tracy::ScopedZone & zone,
const char * text )
inline

◆ _zoneSetName() [2/2]

void _zoneSetName ( tracy::ScopedZone & zone,
const std::string & text )
inline

Variable Documentation

◆ Profile_DtSceneObjectUpdater

const bool Profile_DtSceneObjectUpdater = false

◆ Profile_DtSurfaceClampingUpdater

const bool Profile_DtSurfaceClampingUpdater = false

◆ Profile_DtOsgCullVisitor

const bool Profile_DtOsgCullVisitor = false