HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_OldPerformance Class Reference

#include <UT_OldPerformance.h>

Public Member Functions

 UT_OldPerformance ()
 
virtual ~UT_OldPerformance ()
 
void logMessage (const char *m, int refresh=1, fpreal dtime=-1, const utPerfEvent *event=0)
 
void filterLog (UT_OldPerformanceFilter filter, fpreal time_threshold_ms)
 
void logEnable (int yesno)
 
int logEnabled () const
 
int opTiming () const
 
int frameTiming () const
 
void setCallback (UT_OldPerformanceCB func, void *data)
 
void startEvent (int thread, const char *type, const char *name=0, const char *info=0, int count=-1)
 
fpreal stopEvent (int thread, bool log=true)
 
void logAccumulatedTime (int thread, fpreal time_ms)
 This allows one to manually add to the accumulated time. More...
 
void frameChange (fpreal frame)
 
void frameStart (fpreal frame)
 use frameStart and frameComplete for single-frame timing More...
 
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")
 

Detailed Description

Definition at line 56 of file UT_OldPerformance.h.

Constructor & Destructor Documentation

UT_OldPerformance::UT_OldPerformance ( )
virtual UT_OldPerformance::~UT_OldPerformance ( )
virtual

Member Function Documentation

void UT_OldPerformance::clearFrameAverage ( )
inline

log query methods

Definition at line 204 of file UT_OldPerformance.h.

void UT_OldPerformance::filterLog ( UT_OldPerformanceFilter  filter,
fpreal  time_threshold_ms 
)
static const char* UT_OldPerformance::formatFrequency ( fpreal  t,
const char *  prefix,
const char *  suffix = "\n\r" 
)
static
static const char* UT_OldPerformance::formatTime ( fpreal  t,
const char *  prefix,
const char *  suffix = "\n\r",
int  format = TIME_FORMAT_ALL 
)
static
void UT_OldPerformance::frameChange ( fpreal  frame)

frame methodsframeChange is for automatically timing a series of frames. it stops timing the previous frame and starts timing the given one

void UT_OldPerformance::frameComplete ( fpreal  frame)

frame methodsframeChange is for automatically timing a series of frames. it stops timing the previous frame and starts timing the given one

void UT_OldPerformance::frameStart ( fpreal  frame)

use frameStart and frameComplete for single-frame timing

int UT_OldPerformance::frameTiming ( ) const
inline

Definition at line 103 of file UT_OldPerformance.h.

fpreal UT_OldPerformance::getLastFrame ( ) const
inline

frame methodsframeChange is for automatically timing a series of frames. it stops timing the previous frame and starts timing the given one

Definition at line 126 of file UT_OldPerformance.h.

void UT_OldPerformance::logAccumulatedTime ( int  thread,
fpreal  time_ms 
)

This allows one to manually add to the accumulated time.

int UT_OldPerformance::logCookTime ( ) const
inline

log query methods

Definition at line 164 of file UT_OldPerformance.h.

void UT_OldPerformance::logCookTime ( int  yesno)
inline

log query methods

Definition at line 166 of file UT_OldPerformance.h.

void UT_OldPerformance::logEnable ( int  yesno)
inline

Definition at line 86 of file UT_OldPerformance.h.

int UT_OldPerformance::logEnabled ( ) const
inline

Definition at line 93 of file UT_OldPerformance.h.

int UT_OldPerformance::logErrors ( ) const
inline

log query methods

Definition at line 199 of file UT_OldPerformance.h.

void UT_OldPerformance::logErrors ( int  yesno)
inline

log query methods

Definition at line 201 of file UT_OldPerformance.h.

int UT_OldPerformance::logFLength ( ) const
inline

log query methods

Definition at line 189 of file UT_OldPerformance.h.

void UT_OldPerformance::logFLength ( int  yesno)
inline

log query methods

Definition at line 191 of file UT_OldPerformance.h.

int UT_OldPerformance::logLongCHOPs ( ) const
inline

log query methods

Definition at line 174 of file UT_OldPerformance.h.

void UT_OldPerformance::logLongCHOPs ( int  yesno)
inline

log query methods

Definition at line 176 of file UT_OldPerformance.h.

int UT_OldPerformance::logMemory ( ) const
inline

log query methods

Definition at line 194 of file UT_OldPerformance.h.

void UT_OldPerformance::logMemory ( int  yesno)
inline

log query methods

Definition at line 196 of file UT_OldPerformance.h.

void UT_OldPerformance::logMessage ( const char *  m,
int  refresh = 1,
fpreal  dtime = -1,
const utPerfEvent *  event = 0 
)
int UT_OldPerformance::logObjectViewTime ( ) const
inline

log query methods

Definition at line 179 of file UT_OldPerformance.h.

void UT_OldPerformance::logObjectViewTime ( int  yesno)
inline

log query methods

Definition at line 181 of file UT_OldPerformance.h.

void UT_OldPerformance::logPause ( int  yesno)

log query methods

bool UT_OldPerformance::logSolveTime ( ) const
inline

log query methods

Definition at line 169 of file UT_OldPerformance.h.

void UT_OldPerformance::logSolveTime ( bool  enable)
inline

log query methods

Definition at line 171 of file UT_OldPerformance.h.

void UT_OldPerformance::logSorted ( int  yesno)

log query methods

int UT_OldPerformance::logTimeFormat ( ) const
inline

log query methods

Definition at line 161 of file UT_OldPerformance.h.

void UT_OldPerformance::logTimeFormat ( int  format)
inline

log query methods

Definition at line 162 of file UT_OldPerformance.h.

int UT_OldPerformance::logType ( ) const
inline

log query methods

Definition at line 156 of file UT_OldPerformance.h.

void UT_OldPerformance::logType ( int  type)

log query methods

int UT_OldPerformance::logViewPortTime ( ) const
inline

log query methods

Definition at line 184 of file UT_OldPerformance.h.

void UT_OldPerformance::logViewPortTime ( int  yesno)
inline

log query methods

Definition at line 186 of file UT_OldPerformance.h.

int UT_OldPerformance::opHighlight ( ) const
inline

op methods

Definition at line 138 of file UT_OldPerformance.h.

void UT_OldPerformance::opHighlight ( int  yesno)
inline

op methods

Definition at line 139 of file UT_OldPerformance.h.

int UT_OldPerformance::opInfo ( ) const
inline

op methods

Definition at line 135 of file UT_OldPerformance.h.

void UT_OldPerformance::opInfo ( int  yesno)
inline

op methods

Definition at line 136 of file UT_OldPerformance.h.

int UT_OldPerformance::opTiming ( ) const
inline

Definition at line 96 of file UT_OldPerformance.h.

void UT_OldPerformance::setCallback ( UT_OldPerformanceCB  func,
void data 
)
inline

Definition at line 108 of file UT_OldPerformance.h.

void UT_OldPerformance::startEvent ( int  thread,
const char *  type,
const char *  name = 0,
const char *  info = 0,
int  count = -1 
)

Methods to log performance events. These methods are recorded on a per thread basis

void UT_OldPerformance::startMemoryLog ( )

memory methods

fpreal UT_OldPerformance::stopEvent ( int  thread,
bool  log = true 
)

Methods to log performance events. These methods are recorded on a per thread basis

void UT_OldPerformance::stopMemoryLog ( const char *  label)

memory methods


The documentation for this class was generated from the following file: