#include <pStatCollector.h>
Public Member Functions | |
PStatCollector (const string &name, PStatClient *client=NULL) | |
This bogus version of the function is only defined if DO_PSTATS is not defined, meaning all these functions should compile to nothing. | |
PStatCollector (const PStatCollector &parent, const string &name) | |
This bogus version of the function is only defined if DO_PSTATS is not defined, meaning all these functions should compile to nothing. | |
bool | is_active () |
void | start () |
void | stop () |
void | clear_level () |
void | set_level (float) |
void | add_level (float) |
void | sub_level (float) |
float | get_level () |
bool | is_active (const PStatThread &) |
void | start (const PStatThread &) |
void | start (const PStatThread &, float) |
void | stop (const PStatThread &) |
void | stop (const PStatThread &, float) |
void | clear_level (const PStatThread &) |
void | set_level (const PStatThread &, float) |
void | add_level (const PStatThread &, float) |
void | sub_level (const PStatThread &, float) |
float | get_level (const PStatThread &) |
Collectors can be used to measure two different kinds of values: elapsed time, and "other".
To measure elapsed time, call start() and stop() as appropriate to bracket the section of code you want to time (or use a PStatTimer to do this automatically).
To measure anything else, call set_level() and/or add_level() to set the "level" value associated with this collector. The meaning of the value set for the "level" is entirely up to the user; it may represent the number of triangles rendered or the kilobytes of texture memory consumed, for instance. The level set will remain fixed across multiple frames until it is reset via another set_level() or adjusted via a call to add_level(). It may also be completely removed via clear_level().
Definition at line 79 of file pStatCollector.h.
|
This bogus version of the function is only defined if DO_PSTATS is not defined, meaning all these functions should compile to nothing.
Definition at line 513 of file pStatCollector.I. |
|
This bogus version of the function is only defined if DO_PSTATS is not defined, meaning all these functions should compile to nothing.
Definition at line 536 of file pStatCollector.I. |
|
Definition at line 150 of file pStatCollector.h. |
|
|
Definition at line 148 of file pStatCollector.h. |
|
Definition at line 135 of file pStatCollector.h. Referenced by GraphicsStateGuardian::set_ambient_light(). |
|
Definition at line 152 of file pStatCollector.h. |
|
Definition at line 139 of file pStatCollector.h. |
|
Definition at line 142 of file pStatCollector.h. |
|
Definition at line 131 of file pStatCollector.h. |
|
Definition at line 149 of file pStatCollector.h. |
|
Definition at line 136 of file pStatCollector.h. |
|
Definition at line 144 of file pStatCollector.h. |
|
Definition at line 143 of file pStatCollector.h. |
|
Definition at line 132 of file pStatCollector.h. Referenced by GLGraphicsStateGuardian::draw_quad(). |
|
Definition at line 146 of file pStatCollector.h. |
|
Definition at line 145 of file pStatCollector.h. |
|
Definition at line 133 of file pStatCollector.h. |
|
Definition at line 151 of file pStatCollector.h. |
|
Definition at line 138 of file pStatCollector.h. Referenced by GraphicsStateGuardian::bind_light(), and GraphicsStateGuardian::slot_new_light(). |