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'. 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... | |
![]() | |
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... | |
![]() | |
csPDelArray< psOperProfile > | profs |
csTicks | profStart |
keeps statistics of all operations More... | |
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.
|
inlinevirtual |
needed to clear MSVC warning
Definition at line 108 of file psprofile.h.
|
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 | ( | ) |
|
protected |
Maps strings IDs to their operations.
Definition at line 121 of file psprofile.h.