24 std::vector<CGUIControlProfilerItem *> m_vecChildren;
25 std::string m_strDescription;
27 CGUIControl::GUICONTROLTYPES m_ControlType;
28 unsigned int m_visTime = 0;
29 unsigned int m_renderTime = 0;
30 int64_t m_i64VisStart = 0;
31 int64_t m_i64RenderStart = 0;
37 void BeginVisibility(
void);
38 void EndVisibility(
void);
39 void BeginRender(
void);
41 void SaveToXML(TiXmlElement *parent);
42 unsigned int GetTotalTime(
void)
const {
return m_visTime + m_renderTime; }
52 static bool IsRunning(
void);
60 int GetMaxFrameCount(
void)
const {
return m_iMaxFrameCount; }
61 void SetMaxFrameCount(
int iMaxFrameCount) { m_iMaxFrameCount = iMaxFrameCount; }
62 void SetOutputFile(
const std::string& strOutputFile) { m_strOutputFile = strOutputFile; }
63 const std::string& GetOutputFile(
void)
const {
return m_strOutputFile; }
64 bool SaveResults(
void);
65 unsigned int GetTotalTime(
void)
const {
return m_ItemHead.GetTotalTime(); }
78 static bool m_bIsRunning;
79 std::string m_strOutputFile;
80 int m_iMaxFrameCount = 200;
81 int m_iFrameCount = 0;
84 #define GUIPROFILER_VISIBILITY_BEGIN(x) { if (CGUIControlProfiler::IsRunning()) CGUIControlProfiler::Instance().BeginVisibility(x); } 85 #define GUIPROFILER_VISIBILITY_END(x) { if (CGUIControlProfiler::IsRunning()) CGUIControlProfiler::Instance().EndVisibility(x); } 86 #define GUIPROFILER_RENDER_BEGIN(x) { if (CGUIControlProfiler::IsRunning()) CGUIControlProfiler::Instance().BeginRender(x); } 87 #define GUIPROFILER_RENDER_END(x) { if (CGUIControlProfiler::IsRunning()) CGUIControlProfiler::Instance().EndRender(x); } Definition: GUIControlProfiler.h:48
Base class for controls.
Definition: GUIControl.h:83
Definition: GUIControlProfiler.h:18