22 #ifndef INCLUDED_PROFILE_VIEWER
23 #define INCLUDED_PROFILE_VIEWER
92 virtual const std::vector<ProfileColumn>&
GetColumns() = 0;
102 virtual CStr
GetCellText(
size_t row,
size_t col) = 0;
205 #define g_ProfileViewer CProfileViewer::GetSingleton()
virtual const std::vector< ProfileColumn > & GetColumns()=0
GetColumnDescriptions.
Class AbstractProfileTable: Profile table data model.
virtual CStr GetName()=0
GetName: Short descriptive name of this table (should be static).
InReaction Input(const SDL_Event_ *ev)
Input: Filter and handle any input events that the profile display is interested in.
Class CProfileViewer: Manage and display profiling tables.
A trivial wrapper around a jsval.
void RenderProfile()
RenderProfile: Render the profile display using OpenGL if the user has enabled it.
void SaveToFile()
SaveToFile: Save the current profiler data (for all profile tables) to a file in the 'logs' directory...
void AddRootTable(AbstractProfileTable *table, bool front=false)
AddRootTable: Add a new profile table as a root table (i.e.
void ShowTable(const CStr &table)
ShowTable: Set the named profile table to be the displayed one.
#define UNUSED2(param)
mark a function local variable or parameter as unused and avoid the corresponding compiler warning...
virtual size_t GetNumberRows()=0
GetNumberRows.
static InReaction InputThunk(const SDL_Event_ *ev)
InputThunk: Delegate to the singleton's Input() member function if the singleton has been initialized...
CProfileViewerInternals * m
virtual AbstractProfileTable * GetChild(size_t row)=0
GetChild: Return a row's child table if the child is expandable.
virtual CStr GetTitle()=0
GetTitle: Longer, explanatory text (can be dynamic).
CScriptVal SaveToJS(ScriptInterface &scriptInterface)
SaveToJS: Return a script value containing the current profiler data (for all profile tables)...
ProfileColumn(const CStr &t, size_t w)
Struct ProfileColumn: Describes one column of an AbstractProfileTable.
CStr title
Title of the column.
virtual CStr GetCellText(size_t row, size_t col)=0
GetCellText.
Abstraction around a SpiderMonkey JSContext.
virtual bool IsHighlightRow(size_t row)
IsHighlightRow.
size_t width
Recommended width of the column, in pixels.
virtual ~AbstractProfileTable()