22#ifndef INCLUDED_PROFILE_VIEWER
23#define INCLUDED_PROFILE_VIEWER
93 virtual const std::vector<ProfileColumn>&
GetColumns() = 0;
200#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 CStr GetTitle()=0
GetTitle: Longer, explanatory text (can be dynamic).
virtual ~AbstractProfileTable()
Definition: ProfileViewer.cpp:67
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.
virtual bool IsHighlightRow(size_t row)
IsHighlightRow.
Definition: ProfileViewer.h:122
Definition: Canvas2D.h:36
Class CProfileViewer: Manage and display profiling tables.
Definition: ProfileViewer.h:132
CProfileViewer()
Definition: ProfileViewer.cpp:133
~CProfileViewer()
Definition: ProfileViewer.cpp:139
void ShowTable(const CStr &table)
ShowTable: Set the named profile table to be the displayed one.
Definition: ProfileViewer.cpp:546
void AddRootTable(AbstractProfileTable *table, bool front=false)
AddRootTable: Add a new profile table as a root table (i.e.
Definition: ProfileViewer.cpp:332
static InReaction InputThunk(const SDL_Event_ *ev)
InputThunk: Delegate to the singleton's Input() member function if the singleton has been initialized...
Definition: ProfileViewer.cpp:322
void RenderProfile(CCanvas2D &canvas)
RenderProfile: Render the profile display using OpenGL if the user has enabled it.
Definition: ProfileViewer.cpp:146
void SaveToFile()
SaveToFile: Save the current profiler data (for all profile tables) to a file in the 'logs' directory...
Definition: ProfileViewer.cpp:510
CProfileViewerInternals * m
Definition: ProfileViewer.h:197
InReaction Input(const SDL_Event_ *ev)
Input: Filter and handle any input events that the profile display is interested in.
Definition: ProfileViewer.cpp:259
Template base class for singletons.
Definition: Singleton.h:34
#define UNUSED2(param)
mark a function local variable or parameter as unused and avoid the corresponding compiler warning.
Definition: code_annotation.h:58
Definition: ProfileViewer.cpp:41
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