23 struct DtThreadProfileData;
24 class DtProfileIterator;
34 F3_STATS_OVERLAY = 0x00000001,
35 IMGUI_OVERLAY = 0x00000010,
48 static void addClientFlag(
int flag);
49 static void removeClientFlag(
int flag);
50 static int clientFlags();
54 static void startProfile(
const char* name);
56 static void stopProfile();
59 static void startPerformanceStat(
const char* name);
61 static void stopPerformanceStat();
70 static void incrementFrameCounter();
79 static double averageFps();
81 static double instantFps();
83 static double lowestFps();
86 static double instantFrameTime();
87 static double averageFrameTime();
88 static double highestFrameTime();
107 theCollectTracyStats = val;
108 if (!theCollectTracyStats)
110 theCollectGpuTracyStats =
false;
115 static int threadCount();
116 static DtThreadProfileData* threadData(
int i);
131 static DtThreadProfileData* getCurrentProfileNode();
132 static DtThreadProfileData* getCurrentPerformanceStatNode();
Profile node class stores timing data for a profiled section.
Definition: DtProfileNode.h:22
static int theFrameCounter
Definition: DtProfileManager.h:138
this is a static constructor used to create and initialize this class and the clock at startup by cal...
Definition: DtProfileManager.h:122
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
static bool theCollectGpuTracyStats
Definition: DtProfileManager.h:150
static Initializer theInitializer
Definition: DtProfileManager.h:128
An Iterator for navigating through the function call tree.
Definition: DtProfileIterator.h:23
ClientFlags
Definition: DtProfileManager.h:32
static bool collectTracyGpuStats()
Definition: DtProfileManager.h:104
static bool theCollectTracyStats
Definition: DtProfileManager.h:149
static DtUInt64 * theFrameTimes
Definition: DtProfileManager.h:142
static DtProfileNode thePerformanceStatRoot
Definition: DtProfileManager.h:135
Contains DLL export macros.
static int theFrameTimeIndex
Definition: DtProfileManager.h:144
static void setCollectTracyGpuStats(bool val)
Definition: DtProfileManager.h:113
static bool theShouldReset
Definition: DtProfileManager.h:137
static int theClientFlags
Definition: DtProfileManager.h:148
static DtProfileNode theRoot
Definition: DtProfileManager.h:134
static DtUInt64 thePreviousFrame
Definition: DtProfileManager.h:140
static DtUInt64 theMaxFrameTime
Definition: DtProfileManager.h:143
static bool theInitializationDone
Definition: DtProfileManager.h:146
The profile manager responsible for all profiling.
Definition: DtProfileManager.h:29
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
static DtProfileNode * theRootNode()
tree root access for imgui
Definition: DtProfileManager.h:94
static void setCollectTracyStats(bool val)
set if stats are active
Definition: DtProfileManager.h:106
static int thePreInitClientFlags
Definition: DtProfileManager.h:147
static DtUInt64 theResetTime
Definition: DtProfileManager.h:139
static bool collectTracyStats()
are tracy stats active
Definition: DtProfileManager.h:103
static int frameCountSinceReset()
get the number of frames since reset
Definition: DtProfileManager.h:72
unsigned long long DtUInt64
unsigned 64 bit integer
Definition: DtProfileIterator.h:18