#include <pStatThread.h>
Public Member Functions | |
PStatThread (const string &name, PStatClient *client=NULL) | |
Creates a new named thread. | |
PStatThread (const PStatThread ©) | |
void | operator= (const PStatThread ©) |
void | new_frame () |
This must be called at the start of every "frame", whatever a frame may be deemed to be, to accumulate all the stats that have collected so far for the thread and ship them off to the server. | |
Private Member Functions | |
PStatThread () | |
Normally, this constructor is called only from PStatClient. | |
PStatThread (PStatClient *client, int index) | |
Normally, this constructor is called only from PStatClient. | |
Private Attributes | |
PStatClient * | _client |
int | _index |
Friends | |
class | PStatClient |
class | PStatCollector |
It doesn't have any real connection to any actual threads, but it's used to differentiate tasks which run in different threads, so we can measure them properly. It is presently the user's responsibility to correctly differentiate the various threads.
Definition at line 48 of file pStatThread.h.
|
Normally, this constructor is called only from PStatClient. Use one of the constructors below to create your own Thread. Definition at line 36 of file pStatThread.I. References INLINE. |
|
Normally, this constructor is called only from PStatClient. Use one of the constructors below to create your own Thread. Definition at line 52 of file pStatThread.I. |
|
Creates a new named thread. This will be used to unify tasks that share a common thread, and differentiate tasks that occur in different threads. If any two different PStatThread objects share the same name, then they are really the same thread. Definition at line 75 of file pStatThread.I. |
|
Definition at line 96 of file pStatThread.I. |
|
This must be called at the start of every "frame", whatever a frame may be deemed to be, to accumulate all the stats that have collected so far for the thread and ship them off to the server.
Definition at line 130 of file pStatThread.I. |
|
Definition at line 110 of file pStatThread.I. |
|
Definition at line 65 of file pStatThread.h. |
|
Definition at line 66 of file pStatThread.h. |
|
Definition at line 62 of file pStatThread.h. Referenced by PStatThread(). |
|
Definition at line 63 of file pStatThread.h. Referenced by PStatThread(). |