![]() |
VR-Forces Developer's Guide
|
class that gathers per frame stats and puts up UI
Classes | |
| struct | DatabasePagerData |
| struct | GPUData |
| struct | MimallocData |
| struct | OsgObjectData |
| struct | OsgSceneGraphCameraStats |
| struct | PagingTime |
| struct | PeakBarState |
Public Types | |
| enum | ProfilerOverlayStates { ProfilerOverlayStates_OFF = 0, ProfilerOverlayStates_FPS = 1, ProfilerOverlayStates_FULL = 2 } |
Public Member Functions | |
| DtImGuiLoaderStatsData (DtDe &de) | |
| virtual | ~DtImGuiLoaderStatsData () |
| DtImGuiLoaderStatsData (const DtImGuiLoaderStatsData &rhs)=delete | |
| DtImGuiLoaderStatsData & | operator= (const DtImGuiLoaderStatsData &rhs)=delete |
| virtual void | updateStats (DtDe &de, osg::Camera *camera, osg::FrameStamp *frameStamp, osgDB::DatabasePager *databasePager, int mipthreads) |
| virtual void | createUI (osg::RenderInfo &renderInfo, DtDe &de, unsigned int state) |
| virtual int | getNumberOf60HtzFrames () |
| virtual float | getGoodFrameDuration () |
| virtual int | getNumberOfBlownFrames () |
| virtual float | getBlownFrameDuration () |
| virtual int | getNumberOfVeryBlownFrames () |
| virtual float | getVeryBlownFrameDuration () |
| virtual void | reset () |
| virtual void | setStatsHandler (DtOsgStatsHandler *stats) |
| virtual void | updateGpuStats (DtDe &de) |
| virtual void | addIntStat (const std::string &name, int value) |
| virtual void | addFloatStat (const std::string &name, float value) |
| virtual void | addIntStat (const std::string &subsystem, const std::string &name, int value) |
| virtual void | addFloatStat (const std::string &subsystem, const std::string &name, float value) |
| float | getLastCullTime () |
| float | getLastUpdateTime () |
| float | getLastDrawTime () |
| float | getLastGpuTime () |
Public Attributes | |
| const int | NUM_PAGING_ENTRIES = 4 |
Static Public Attributes | |
| static const int | GRAPH_ENTRIES = 180 |
| static const int | GPU_UPLOADED_MEMORY_HISTORY_SIZE = 120 |
| static const float | theOneMbBytes |
Protected Types | |
| typedef std::map< std::string, int > | intStats |
| typedef std::map< std::string, float > | floatStats |
| typedef void(* | addProc )(makVrv::DtImGuiLoaderStatsData::GPUData *gpu) |
Protected Member Functions | |
| virtual void | updateMimallocStats () |
| virtual void | updateMimallocStatsFast () |
| virtual void | createMimallocStatsUI () |
| virtual void | updateOsgCameraStats (osg::Camera *camera, osg::FrameStamp *frameStamp) |
| virtual int | treeTraverse (DtProfileNode *node, int depth) |
| virtual void | printOsgTextures (void) |
| void | printOsgEarthGLMemory (void) |
| virtual void | printVrvTextures (void) |
| virtual void | printVrvBuffers (void) |
| virtual void | printTextureBreaksup (const std::unordered_map< unsigned int, int > &textures) |
| virtual void | updateVrvGpuArenaStats (DtDe &de) |
| virtual void | createVrvGpuArenaStats () |
| virtual void | drawPeakBar (PeakBarState &state, float nonClippedPercent) |
| virtual void | drawGpuArenaMultiLinePlot (int budgetMB, float nonClippedPercent) |
Static Protected Member Functions | |
| static void | onMimallocError (int err, void *arg) |
Static Protected Attributes | |
| static const int | MIMALLOC_ERROR_LOG_SIZE = 10 |
| static std::mutex | theMimallocErrorMutex |
| static std::deque< std::string > | theMimallocErrorLog |
| static int | theMimallocErrorCount |
|
protected |
|
protected |
|
protected |
| makVrv::DtImGuiLoaderStatsData::DtImGuiLoaderStatsData | ( | DtDe & | de | ) |
constructor
|
virtual |
destructor
|
delete |
not allowed
|
delete |
not allowed
|
virtual |
updates the stats, called even when hidden
|
virtual |
adds IMGui UI
|
virtual |
how many frames were at >= 60 fps
|
virtual |
how long we had decent frames
|
virtual |
how many moderately bad frames there were
|
virtual |
how much time was spent at moderate unacceptable speeds
|
virtual |
how many very bad frames there were
|
virtual |
how much time was spent at super unacceptable speeds
|
virtual |
resets frame stats
|
inlinevirtual |
gui handler
|
virtual |
gets gpu memory data
|
virtual |
brief imgui loader stats currently added to loader perf page top level int stat
|
virtual |
brief imgui loader stats currently added to loader perf page subcategory float stat
|
virtual |
brief imgui loader stats currently added to loader perf page top level int stat
|
virtual |
brief imgui loader stats currently added to loader perf page subcategory float stat
| float makVrv::DtImGuiLoaderStatsData::getLastCullTime | ( | ) |
helper functions for auto tests
| float makVrv::DtImGuiLoaderStatsData::getLastUpdateTime | ( | ) |
helper functions for auto tests
| float makVrv::DtImGuiLoaderStatsData::getLastDrawTime | ( | ) |
helper functions for auto tests
| float makVrv::DtImGuiLoaderStatsData::getLastGpuTime | ( | ) |
helper functions for auto tests
|
protectedvirtual |
updates the mimalloc process and allocator health stats; throttled to once per second
|
protectedvirtual |
updates only the cheap mimalloc allocator stats (no OS process info); called every frame
|
protectedvirtual |
adds the mimalloc stats section to the profiler UI
|
protectedvirtual |
enables or disables OSG scene stats collection based on myEnableOsgCameraStats; also reads per-frame gpu/rendering timing attributes from the camera stats.
|
protectedvirtual |
|
protectedvirtual |
print stats of osg textures
|
protected |
print stats of osgEarth textures + buffers
|
protectedvirtual |
print stats of vrv textures
|
protectedvirtual |
print stats of vrv resident/non-resident buffers
|
protectedvirtual |
additional details of the textures
|
protectedvirtual |
Called during updateStats to update the vrv gpu arena stats.
|
protectedvirtual |
Called during createUI to create the vrv gpu arena stats.
|
protectedvirtual |
draws a peak upload bar
|
protectedvirtual |
draws a multi-line plot for gpu arena stats.
|
staticprotected |
| const int makVrv::DtImGuiLoaderStatsData::NUM_PAGING_ENTRIES = 4 |
|
static |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |