Planeshift
Public Member Functions | Protected Attributes

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>

List of all members.

Public Member Functions

virtual void AddCons (const csString &operName, csTicks time)
 Notify about resource consumption done by operation identified by 'operName'.
csString Dump (const csString &unitName, const csString &header)
 Builds textual description of all profilling statistics.
void Reset ()
virtual ~psNamedProfiles ()
 needed to clear MSVC warning

Protected Attributes

csHash< psOperProfile *, csString > namedProfs
 Maps strings IDs to their operations.

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 ( ) [inline, virtual]

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 ( )

Reimplemented from psOperProfileSet.


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: