![]() |
VR-Forces 4.10 Class Documentation
|
The profile manager responsible for all profiling. More...
Classes | |
| class | Initializer |
| this is a static constructor used to create and initialize this class and the clock at startup by calling the constructor of the profile manager More... | |
Public Types | |
| enum | ClientFlags { F3_STATS_OVERLAY = 0x00000001, IMGUI_OVERLAY = 0x00000010 } |
Static Public Member Functions | |
| static void | init () |
| Set up the profile manager (cpu count per second, etc.) More... | |
| static void | startProfile (const char *name) |
| begin a profile. This function is thread safe More... | |
| static void | stopProfile () |
| begin stop a profile. This function is thread safe More... | |
| static void | startPerformanceStat (const char *name) |
| begin a performance stat. This function is thread safe More... | |
| static void | stopPerformanceStat () |
| begin stop a profile. This function is thread safe More... | |
| static void | getTime (DtUInt64 &time) |
| Get a timestamp in CPU ticks. This function is thread safe. More... | |
| static void | reset () |
| reset the entire tree More... | |
| static void | incrementFrameCounter () |
| increments the frame counter. More... | |
| static int | frameCountSinceReset () |
| get the number of frames since reset More... | |
| static DtUInt64 | timeSinceReset () |
| get the number of ticks since reset More... | |
| static DtUInt64 | ticksPerSecond () |
| get the number of ticks per second More... | |
| static double | averageFps () |
| get the average frames per second over the last second More... | |
| static double | instantFps () |
| get the instantaneous frames per second More... | |
| static double | lowestFps () |
| lowest fps seen since reset More... | |
| static double | instantFrameTime () |
| get the frame time in milliseconds More... | |
| static double | averageFrameTime () |
| static double | highestFrameTime () |
| static DtProfileIterator * | profileIterator () |
| create a profile iterator More... | |
| static DtProfileNode * | theRootNode () |
| tree root access for imgui More... | |
| static DtProfileIterator * | statIterator () |
| create a performance stat iterator More... | |
| static void | releaseIterator (DtProfileIterator *iterator) |
| release a profile iterator More... | |
| static bool | collectTracyStats () |
| are tracy stats active More... | |
| static bool | collectTracyGpuStats () |
| static void | setCollectTracyStats (bool val) |
| set if stats are active More... | |
| static void | setCollectTracyGpuStats (bool val) |
| static int | threadCount () |
| static DtThreadProfileData * | threadData (int i) |
| static void | addClientFlag (int flag) |
| static void | removeClientFlag (int flag) |
| static int | clientFlags () |
Static Private Member Functions | |
| static DtThreadProfileData * | getCurrentProfileNode () |
| get the profiler data for a particular thread More... | |
| static DtThreadProfileData * | getCurrentPerformanceStatNode () |
Static Private Attributes | |
| static Initializer | theInitializer |
| static DtProfileNode | theRoot |
| static DtProfileNode | thePerformanceStatRoot |
| static bool | theShouldReset |
| static int | theFrameCounter |
| static DtUInt64 | theResetTime |
| static DtUInt64 | thePreviousFrame |
| static DtUInt64 * | theFrameTimes |
| static DtUInt64 | theMaxFrameTime |
| static int | theFrameTimeIndex |
| static bool | theInitializationDone |
| static int | thePreInitClientFlags |
| static int | theClientFlags |
| static bool | theCollectTracyStats |
| static bool | theCollectGpuTracyStats |
Friends | |
| class | Initializer |
The profile manager responsible for all profiling.
|
static |
Set up the profile manager (cpu count per second, etc.)
|
static |
Clients who use the profile manager must register and unregister themselves. If no clients are registered, startProfile will return immediately so there's no overhead of generating profiles when nobody is using the data. Clients should register with addClientFlag before any calls to startProfile or startPerformanceStat and must unregister with removeClientFlag once they are done collecting stats. In most cases can be done at client initialization and destruction time.
|
static |
|
static |
|
static |
begin a profile. This function is thread safe
Referenced by makVrv::DtProfileSample::DtProfileSample(), and makVrv::DtProfileTarget< true >::DtProfileTarget().
|
static |
begin stop a profile. This function is thread safe
Referenced by makVrv::DtProfileSample::~DtProfileSample(), and makVrv::DtProfileTarget< true >::~DtProfileTarget().
|
static |
begin a performance stat. This function is thread safe
Referenced by makVrv::DtPerfomanceStatSample::DtPerfomanceStatSample().
|
static |
begin stop a profile. This function is thread safe
Referenced by makVrv::DtPerfomanceStatSample::~DtPerfomanceStatSample().
|
static |
Get a timestamp in CPU ticks. This function is thread safe.
|
static |
reset the entire tree
|
static |
increments the frame counter.
This needs to be called once per frame from the main thread in order to compute time/frame correctly
|
inlinestatic |
get the number of frames since reset
|
static |
get the number of ticks since reset
|
static |
get the number of ticks per second
|
static |
get the average frames per second over the last second
|
static |
get the instantaneous frames per second
|
static |
lowest fps seen since reset
|
static |
get the frame time in milliseconds
|
static |
|
static |
|
static |
create a profile iterator
|
inlinestatic |
tree root access for imgui
|
static |
create a performance stat iterator
|
static |
release a profile iterator
|
inlinestatic |
are tracy stats active
|
inlinestatic |
|
inlinestatic |
set if stats are active
|
inlinestatic |
|
static |
|
static |
|
staticprivate |
get the profiler data for a particular thread
|
staticprivate |
|
friend |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |