engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | Protected 属性 | 所有成员列表
rcContext类 参考

Provides an interface for optional logging and performance tracking of the Recast build process. 更多...

#include <Recast.h>

Public 成员函数

void enableLog (bool state)
 Enables or disables logging. 更多...
 
void enableTimer (bool state)
 Enables or disables the performance timers. 更多...
 
int getAccumulatedTime (const rcTimerLabel label) const
 Returns the total accumulated time of the specified performance timer. 更多...
 
void log (const rcLogCategory category, const char *format,...)
 Logs a message. 更多...
 
 rcContext (bool state=true)
 Contructor. 更多...
 
void resetLog ()
 Clears all log entries.
 
void resetTimers ()
 Clears all peformance timers. (Resets all to unused.)
 
void startTimer (const rcTimerLabel label)
 Starts the specified performance timer. 更多...
 
void stopTimer (const rcTimerLabel label)
 Stops the specified performance timer. 更多...
 

Protected 成员函数

virtual int doGetAccumulatedTime (const rcTimerLabel) const
 Returns the total accumulated time of the specified performance timer. 更多...
 
virtual void doLog (const rcLogCategory, const char *, const int)
 Logs a message. 更多...
 
virtual void doResetLog ()
 Clears all log entries.
 
virtual void doResetTimers ()
 Clears all timers. (Resets all to unused.)
 
virtual void doStartTimer (const rcTimerLabel)
 Starts the specified performance timer. 更多...
 
virtual void doStopTimer (const rcTimerLabel)
 Stops the specified performance timer. 更多...
 

Protected 属性

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.

构造及析构函数说明

◆ rcContext()

rcContext::rcContext ( bool  state = true)
inline

Contructor.

参数
[in]stateTRUE if the logging and performance timers should be enabled. [Default: true]

成员函数说明

◆ doGetAccumulatedTime()

virtual int rcContext::doGetAccumulatedTime ( const  rcTimerLabel) const
inlineprotectedvirtual

Returns the total accumulated time of the specified performance timer.

参数
[in]labelThe category of the timer.
返回
The accumulated time of the timer, or -1 if timers are disabled or the timer has never been started.

◆ doLog()

virtual void rcContext::doLog ( const  rcLogCategory,
const char *  ,
const int   
)
inlineprotectedvirtual

Logs a message.

参数
[in]categoryThe category of the message.
[in]msgThe formatted message.
[in]lenThe length of the formatted message.

◆ doStartTimer()

virtual void rcContext::doStartTimer ( const  rcTimerLabel)
inlineprotectedvirtual

Starts the specified performance timer.

参数
[in]labelThe category of timer.

◆ doStopTimer()

virtual void rcContext::doStopTimer ( const  rcTimerLabel)
inlineprotectedvirtual

Stops the specified performance timer.

参数
[in]labelThe category of the timer.

◆ enableLog()

void rcContext::enableLog ( bool  state)
inline

Enables or disables logging.

参数
[in]stateTRUE if logging should be enabled.

◆ enableTimer()

void rcContext::enableTimer ( bool  state)
inline

Enables or disables the performance timers.

参数
[in]stateTRUE if timers should be enabled.

◆ getAccumulatedTime()

int rcContext::getAccumulatedTime ( const rcTimerLabel  label) const
inline

Returns the total accumulated time of the specified performance timer.

参数
labelThe category of the timer.
返回
The accumulated time of the timer, or -1 if timers are disabled or the timer has never been started.

◆ log()

void rcContext::log ( const rcLogCategory  category,
const char *  format,
  ... 
)

Logs a message.

参数
[in]categoryThe category of the message.
[in]formatThe message.

◆ startTimer()

void rcContext::startTimer ( const rcTimerLabel  label)
inline

Starts the specified performance timer.

参数
labelThe category of timer.

◆ stopTimer()

void rcContext::stopTimer ( const rcTimerLabel  label)
inline

Stops the specified performance timer.

参数
labelThe category of the timer.

该类的文档由以下文件生成: