Planeshift
|
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'. | |
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. |
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.
virtual psNamedProfiles::~psNamedProfiles | ( | ) | [inline, virtual] |
needed to clear MSVC warning
Definition at line 108 of file psprofile.h.
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.
csHash<psOperProfile*, csString> psNamedProfiles::namedProfs [protected] |
Maps strings IDs to their operations.
Definition at line 121 of file psprofile.h.