10 #include <vlutil/vlPerformanceStats.h>
25 if (!theProfileContextStrings)
27 theProfileContextStrings =
new std::map<int, std::string>();
30 (*theProfileContextStrings)[context] = str;
36 std::map<int, std::string>::const_iterator iter = (*theProfileContextStrings).find(context);
38 if (iter != (*theProfileContextStrings).end())
49 virtual void resume();
52 virtual bool isPaused()
const;
58 virtual void addSample(
double frameTime,
int section = -1);
61 virtual void adjustSample(
int section,
double frameTime);
68 virtual double meanFrameRate(
int section = -1);
70 virtual double medianFrameRate(
int section = -1);
72 virtual double standardDeviationFrameRate(
int section = -1);
74 virtual double minimumFrameRate(
int section = -1);
76 virtual double maximumFrameRate(
int section = -1);
80 virtual double lastSample(
int section = -1);
86 virtual void setNumberOfFramesToAverage(
unsigned int numFramesToAverage);
87 virtual unsigned int numberOfFramesToAverage();
90 virtual int numSections()
const;
93 virtual int section(
int index)
const;
96 virtual std::vector<int> sections()
const;
100 return mySectionTimes;
105 return myCurrentFrameRate;
120 #define PROFILE_CONTEXT_STRING(Context, Description) const int the##Context = DtPerformanceMonitor::AddProfileContextString(Context, Description);
161 myPerformanceMarker.start();
168 myPerformanceMarker.stop();
177 #define DtVRF_PERFORMANCE_PROFILE(Context) DtPerformanceMonitorMarker frameRate##Context(Context);
IMGUI_API bool Begin(const char *name, bool *p_open=NULL, ImGuiWindowFlags flags=0)
#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