Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CProfileViewer Class Reference

Class CProfileViewer: Manage and display profiling tables. More...

#include <ProfileViewer.h>

Inheritance diagram for CProfileViewer:
Collaboration diagram for CProfileViewer:

Public Member Functions

 CProfileViewer ()
 
 ~CProfileViewer ()
 
void RenderProfile (CCanvas2D &canvas)
 RenderProfile: Render the profile display using OpenGL if the user has enabled it. More...
 
void AddRootTable (AbstractProfileTable *table, bool front=false)
 AddRootTable: Add a new profile table as a root table (i.e. More...
 
void SaveToFile ()
 SaveToFile: Save the current profiler data (for all profile tables) to a file in the 'logs' directory. More...
 
void ShowTable (const CStr &table)
 ShowTable: Set the named profile table to be the displayed one. More...
 
- Public Member Functions inherited from Singleton< CProfileViewer >
 Singleton ()
 
 ~Singleton ()
 

Private Attributes

CProfileViewerInternals * m
 

Friends

class AbstractProfileTable
 

Additional Inherited Members

- Static Public Member Functions inherited from Singleton< CProfileViewer >
static CProfileViewer & GetSingleton ()
 
static CProfileViewer * GetSingletonPtr ()
 
static bool IsInitialised ()
 

Detailed Description

Class CProfileViewer: Manage and display profiling tables.

Constructor & Destructor Documentation

◆ CProfileViewer()

CProfileViewer::CProfileViewer ( )

◆ ~CProfileViewer()

CProfileViewer::~CProfileViewer ( )

Member Function Documentation

◆ AddRootTable()

void CProfileViewer::AddRootTable ( AbstractProfileTable *  table,
bool  front = false 
)

AddRootTable: Add a new profile table as a root table (i.e.

the tables that you cycle through via the profile hotkey).

Note
Tables added via this function are automatically removed from the list of root tables when they are deleted.
Parameters
tableThis table is added as a root table.
frontIf true then the table will be the new first in the list, else it will be the last.

◆ RenderProfile()

void CProfileViewer::RenderProfile ( CCanvas2D &  canvas)

RenderProfile: Render the profile display using OpenGL if the user has enabled it.

◆ SaveToFile()

void CProfileViewer::SaveToFile ( )

SaveToFile: Save the current profiler data (for all profile tables) to a file in the 'logs' directory.

◆ ShowTable()

void CProfileViewer::ShowTable ( const CStr &  table)

ShowTable: Set the named profile table to be the displayed one.

If it is not found, no profile is displayed.

Parameters
tableThe table name (matching AbstractProfileTable::GetName), or the empty string to display no table.

Friends And Related Function Documentation

◆ AbstractProfileTable

friend class AbstractProfileTable
friend

Member Data Documentation

◆ m

CProfileViewerInternals* CProfileViewer::m
private

The documentation for this class was generated from the following files: