22#ifndef INCLUDED_PROFILE_VIEWER
23#define INCLUDED_PROFILE_VIEWER
93 virtual const std::vector<ProfileColumn>&
GetColumns() = 0;
177#define g_ProfileViewer CProfileViewer::GetSingleton()
Class AbstractProfileTable: Profile table data model.
Definition: ProfileViewer.h:62
virtual CStr GetName()=0
GetName: Short descriptive name of this table (should be static).
virtual size_t GetNumberRows()=0
GetNumberRows.
virtual const std::vector< ProfileColumn > & GetColumns()=0
GetColumnDescriptions.
virtual bool IsHighlightRow(size_t)
IsHighlightRow.
Definition: ProfileViewer.h:122
virtual CStr GetTitle()=0
GetTitle: Longer, explanatory text (can be dynamic).
virtual ~AbstractProfileTable()
Definition: ProfileViewer.cpp:99
virtual AbstractProfileTable * GetChild(size_t row)=0
GetChild: Return a row's child table if the child is expandable.
virtual CStr GetCellText(size_t row, size_t col)=0
GetCellText.
Definition: Canvas2D.h:36
Class CProfileViewer: Manage and display profiling tables.
Definition: ProfileViewer.h:132
CProfileViewer()
Definition: ProfileViewer.cpp:165
~CProfileViewer()
Definition: ProfileViewer.cpp:171
void ShowTable(const CStr &table)
ShowTable: Set the named profile table to be the displayed one.
Definition: ProfileViewer.cpp:580
void AddRootTable(AbstractProfileTable *table, bool front=false)
AddRootTable: Add a new profile table as a root table (i.e.
Definition: ProfileViewer.cpp:357
void RenderProfile(CCanvas2D &canvas)
RenderProfile: Render the profile display using OpenGL if the user has enabled it.
Definition: ProfileViewer.cpp:178
void SaveToFile()
SaveToFile: Save the current profiler data (for all profile tables) to a file in the 'logs' directory...
Definition: ProfileViewer.cpp:539
CProfileViewerInternals * m
Definition: ProfileViewer.h:174
Template base class for singletons.
Definition: Singleton.h:35
Definition: ProfileViewer.cpp:56
Struct ProfileColumn: Describes one column of an AbstractProfileTable.
Definition: ProfileViewer.h:37
ProfileColumn(const CStr &t, size_t w)
Definition: ProfileViewer.h:44
size_t width
Recommended width of the column, in pixels.
Definition: ProfileViewer.h:42
CStr title
Title of the column.
Definition: ProfileViewer.h:39