#include <UT_Performance.h>
Public Member Functions | |
| UT_Performance () | |
| ~UT_Performance () | |
| void | startEvent (const char *type, const char *name=0, const char *info=0, int count=-1) |
| fpreal | stopEvent (int log=1) |
| void | logMessage (const char *m, int refresh=1, fpreal dtime=-1, const utPerfEvent *event=0) |
| void | logAccumulatedTime (fpreal time) |
| void | filterLog (UT_PerformanceFilter filter, float time_threshold_ms) |
| void | logEnable (int yesno) |
| int | logEnabled () const |
| int | opTiming () const |
| int | frameTiming () const |
| void | setCallback (UT_PerformanceCB func, void *data) |
| void | frameChange (fpreal frame) |
| void | frameStart (fpreal frame) |
| use frameStart and frameComplete for single-frame timing | |
| void | frameComplete (fpreal frame) |
| fpreal | getLastFrame () const |
| int | opInfo () const |
| void | opInfo (int yesno) |
| int | opHighlight () const |
| void | opHighlight (int yesno) |
| void | startMemoryLog () |
| void | stopMemoryLog (const char *label) |
| int | logType () const |
| void | logType (int type) |
| void | logPause (int yesno) |
| void | logSorted (int yesno) |
| int | logTimeFormat () const |
| void | logTimeFormat (int format) |
| int | logCookTime () const |
| void | logCookTime (int yesno) |
| bool | logSolveTime () const |
| void | logSolveTime (bool enable) |
| int | logLongCHOPs () const |
| void | logLongCHOPs (int yesno) |
| int | logObjectViewTime () const |
| void | logObjectViewTime (int yesno) |
| int | logViewPortTime () const |
| void | logViewPortTime (int yesno) |
| int | logFLength () const |
| void | logFLength (int yesno) |
| int | logMemory () const |
| void | logMemory (int yesno) |
| int | logErrors () const |
| void | logErrors (int yesno) |
| void | clearFrameAverage () |
Static Public Member Functions | |
| static const char * | formatTime (fpreal t, const char *prefix, const char *suffix="\n\r", int format=TIME_FORMAT_ALL) |
| static const char * | formatFrequency (fpreal t, const char *prefix, const char *suffix="\n\r") |
Definition at line 59 of file UT_Performance.h.
| UT_Performance::UT_Performance | ( | ) |
| UT_Performance::~UT_Performance | ( | ) |
| void UT_Performance::clearFrameAverage | ( | ) | [inline] |
Definition at line 190 of file UT_Performance.h.
| void UT_Performance::filterLog | ( | UT_PerformanceFilter | filter, | |
| float | time_threshold_ms | |||
| ) |
| static const char* UT_Performance::formatFrequency | ( | fpreal | t, | |
| const char * | prefix, | |||
| const char * | suffix = "\n\r" | |||
| ) | [static] |
| static const char* UT_Performance::formatTime | ( | fpreal | t, | |
| const char * | prefix, | |||
| const char * | suffix = "\n\r", |
|||
| int | format = TIME_FORMAT_ALL | |||
| ) | [static] |
| void UT_Performance::frameChange | ( | fpreal | frame | ) |
frameChange is for automatically timing a series of frames. it stops timing the previous frame and starts timing the given one
| void UT_Performance::frameComplete | ( | fpreal | frame | ) |
| void UT_Performance::frameStart | ( | fpreal | frame | ) |
use frameStart and frameComplete for single-frame timing
| int UT_Performance::frameTiming | ( | ) | const [inline] |
Definition at line 96 of file UT_Performance.h.
| fpreal UT_Performance::getLastFrame | ( | ) | const [inline] |
Definition at line 119 of file UT_Performance.h.
| void UT_Performance::logAccumulatedTime | ( | fpreal | time | ) | [inline] |
Definition at line 74 of file UT_Performance.h.
| void UT_Performance::logCookTime | ( | int | yesno | ) | [inline] |
Definition at line 152 of file UT_Performance.h.
| int UT_Performance::logCookTime | ( | ) | const [inline] |
Definition at line 150 of file UT_Performance.h.
| void UT_Performance::logEnable | ( | int | yesno | ) | [inline] |
Definition at line 79 of file UT_Performance.h.
| int UT_Performance::logEnabled | ( | ) | const [inline] |
Definition at line 86 of file UT_Performance.h.
| void UT_Performance::logErrors | ( | int | yesno | ) | [inline] |
Definition at line 187 of file UT_Performance.h.
| int UT_Performance::logErrors | ( | ) | const [inline] |
Definition at line 185 of file UT_Performance.h.
| void UT_Performance::logFLength | ( | int | yesno | ) | [inline] |
Definition at line 177 of file UT_Performance.h.
| int UT_Performance::logFLength | ( | ) | const [inline] |
Definition at line 175 of file UT_Performance.h.
| void UT_Performance::logLongCHOPs | ( | int | yesno | ) | [inline] |
Definition at line 162 of file UT_Performance.h.
| int UT_Performance::logLongCHOPs | ( | ) | const [inline] |
Definition at line 160 of file UT_Performance.h.
| void UT_Performance::logMemory | ( | int | yesno | ) | [inline] |
Definition at line 182 of file UT_Performance.h.
| int UT_Performance::logMemory | ( | ) | const [inline] |
Definition at line 180 of file UT_Performance.h.
| void UT_Performance::logMessage | ( | const char * | m, | |
| int | refresh = 1, |
|||
| fpreal | dtime = -1, |
|||
| const utPerfEvent * | event = 0 | |||
| ) |
| void UT_Performance::logObjectViewTime | ( | int | yesno | ) | [inline] |
Definition at line 167 of file UT_Performance.h.
| int UT_Performance::logObjectViewTime | ( | ) | const [inline] |
Definition at line 165 of file UT_Performance.h.
| void UT_Performance::logPause | ( | int | yesno | ) |
| void UT_Performance::logSolveTime | ( | bool | enable | ) | [inline] |
Definition at line 157 of file UT_Performance.h.
| bool UT_Performance::logSolveTime | ( | ) | const [inline] |
Definition at line 155 of file UT_Performance.h.
| void UT_Performance::logSorted | ( | int | yesno | ) |
| void UT_Performance::logTimeFormat | ( | int | format | ) | [inline] |
Definition at line 148 of file UT_Performance.h.
| int UT_Performance::logTimeFormat | ( | ) | const [inline] |
Definition at line 147 of file UT_Performance.h.
| void UT_Performance::logType | ( | int | type | ) |
| int UT_Performance::logType | ( | ) | const [inline] |
Definition at line 142 of file UT_Performance.h.
| void UT_Performance::logViewPortTime | ( | int | yesno | ) | [inline] |
Definition at line 172 of file UT_Performance.h.
| int UT_Performance::logViewPortTime | ( | ) | const [inline] |
Definition at line 170 of file UT_Performance.h.
| void UT_Performance::opHighlight | ( | int | yesno | ) | [inline] |
Definition at line 130 of file UT_Performance.h.
| int UT_Performance::opHighlight | ( | ) | const [inline] |
Definition at line 129 of file UT_Performance.h.
| void UT_Performance::opInfo | ( | int | yesno | ) | [inline] |
Definition at line 127 of file UT_Performance.h.
| int UT_Performance::opInfo | ( | ) | const [inline] |
Definition at line 126 of file UT_Performance.h.
| int UT_Performance::opTiming | ( | ) | const [inline] |
Definition at line 89 of file UT_Performance.h.
| void UT_Performance::setCallback | ( | UT_PerformanceCB | func, | |
| void * | data | |||
| ) | [inline] |
Definition at line 101 of file UT_Performance.h.
| void UT_Performance::startEvent | ( | const char * | type, | |
| const char * | name = 0, |
|||
| const char * | info = 0, |
|||
| int | count = -1 | |||
| ) |
| void UT_Performance::startMemoryLog | ( | ) |
| fpreal UT_Performance::stopEvent | ( | int | log = 1 |
) |
| void UT_Performance::stopMemoryLog | ( | const char * | label | ) |
1.5.9