Planeshift
psNamedProfiles Class Reference

Statistics of consumption by operations that are identified by names (strings) This is usable for most profilling purposes - some operations are identified using other means (e.g. More...

#include <psprofile.h>

Public Member Functions

virtual void AddCons (const csString &operName, csTicks time)
 Notify about resource consumption done by operation identified by 'operName'. More...
 
csString Dump (const csString &unitName, const csString &header)
 Builds textual description of all profilling statistics. More...
 
void Reset ()
 
virtual ~psNamedProfiles ()
 needed to clear MSVC warning More...
 
- Public Member Functions inherited from psOperProfileSet
void Dump (const csStringFast< 50 > &unitName, csStringFast< 50 > &header, csStringFast< 50 > &list)
 Builds textual description of all profilling statistics and returns it in two separate parts. More...
 
 psOperProfileSet ()
 
void Reset ()
 

Protected Attributes

csHash< psOperProfile *, csString > namedProfs
 Maps strings IDs to their operations. More...
 
- Protected Attributes inherited from psOperProfileSet
csPDelArray< psOperProfileprofs
 
csTicks profStart
 keeps statistics of all operations More...
 

Detailed Description

Statistics of consumption by operations that are identified by names (strings) This is usable for most profilling purposes - some operations are identified using other means (e.g.

integer constants)

Definition at line 104 of file psprofile.h.

Constructor & Destructor Documentation

virtual psNamedProfiles::~psNamedProfiles ( )
inlinevirtual

needed to clear MSVC warning

Definition at line 108 of file psprofile.h.

Member Function Documentation

virtual void psNamedProfiles::AddCons ( const csString &  operName,
csTicks  time 
)
virtual

Notify about resource consumption done by operation identified by 'operName'.

csString psNamedProfiles::Dump ( const csString &  unitName,
const csString &  header 
)

Builds textual description of all profilling statistics.

'unitName' contains name of consumption unit (e.g. "millisecond")

void psNamedProfiles::Reset ( )

Member Data Documentation

csHash<psOperProfile*, csString> psNamedProfiles::namedProfs
protected

Maps strings IDs to their operations.

Definition at line 121 of file psprofile.h.


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