Atoms Crowd
7.0.0
|
#include <Recast.h>
Public Member Functions | |
rcContext (bool state=true) | |
void | enableLog (bool state) |
void | resetLog () |
Clears all log entries. | |
void | log (const rcLogCategory category, const char *format,...) |
void | enableTimer (bool state) |
void | resetTimers () |
Clears all peformance timers. (Resets all to unused.) | |
void | startTimer (const rcTimerLabel label) |
void | stopTimer (const rcTimerLabel label) |
int | getAccumulatedTime (const rcTimerLabel label) const |
Protected Member Functions | |
virtual void | doResetLog () |
Clears all log entries. | |
virtual void | doLog (const rcLogCategory, const char *, const int) |
virtual void | doResetTimers () |
Clears all timers. (Resets all to unused.) | |
virtual void | doStartTimer (const rcTimerLabel) |
virtual void | doStopTimer (const rcTimerLabel) |
virtual int | doGetAccumulatedTime (const rcTimerLabel) const |
Protected Attributes | |
bool | m_logEnabled |
True if logging is enabled. | |
bool | m_timerEnabled |
True if the performance timers are enabled. | |
Provides an interface for optional logging and performance tracking of the Recast build process.
|
inline |
Contructor.
[in] | state | TRUE if the logging and performance timers should be enabled. [Default: true] |
|
inlineprotectedvirtual |
Returns the total accumulated time of the specified performance timer.
[in] | label | The category of the timer. |
|
inlineprotectedvirtual |
Logs a message.
[in] | category | The category of the message. |
[in] | msg | The formatted message. |
[in] | len | The length of the formatted message. |
|
inlineprotectedvirtual |
Starts the specified performance timer.
[in] | label | The category of timer. |
|
inlineprotectedvirtual |
Stops the specified performance timer.
[in] | label | The category of the timer. |
|
inline |
Enables or disables logging.
[in] | state | TRUE if logging should be enabled. |
|
inline |
Enables or disables the performance timers.
[in] | state | TRUE if timers should be enabled. |
|
inline |
Returns the total accumulated time of the specified performance timer.
label | The category of the timer. |
void AtomsUtils::rcContext::log | ( | const rcLogCategory | category, |
const char * | format, | ||
... | |||
) |
Logs a message.
[in] | category | The category of the message. |
[in] | format | The message. |
|
inline |
Starts the specified performance timer.
label | The category of timer. |
|
inline |
Stops the specified performance timer.
label | The category of the timer. |