HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 void formatTime (UT_WorkBuffer &buf, fpreal t, const char *prefix, const char *suffix="\n\r", int format=TIME_FORMAT_ALL)
 

Detailed Description

Definition at line 57 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 205 of file UT_OldPerformance.h.

void UT_OldPerformance::filterLog ( UT_OldPerformanceFilter  filter,
fpreal  time_threshold_ms 
)
static void UT_OldPerformance::formatTime ( UT_WorkBuffer buf,
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 104 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 127 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 165 of file UT_OldPerformance.h.

void UT_OldPerformance::logCookTime ( int  yesno)
inline

log query methods

Definition at line 167 of file UT_OldPerformance.h.

void UT_OldPerformance::logEnable ( int  yesno)
inline

Definition at line 87 of file UT_OldPerformance.h.

int UT_OldPerformance::logEnabled ( ) const
inline

Definition at line 94 of file UT_OldPerformance.h.

int UT_OldPerformance::logErrors ( ) const
inline

log query methods

Definition at line 200 of file UT_OldPerformance.h.

void UT_OldPerformance::logErrors ( int  yesno)
inline

log query methods

Definition at line 202 of file UT_OldPerformance.h.

int UT_OldPerformance::logFLength ( ) const
inline

log query methods

Definition at line 190 of file UT_OldPerformance.h.

void UT_OldPerformance::logFLength ( int  yesno)
inline

log query methods

Definition at line 192 of file UT_OldPerformance.h.

int UT_OldPerformance::logLongCHOPs ( ) const
inline

log query methods

Definition at line 175 of file UT_OldPerformance.h.

void UT_OldPerformance::logLongCHOPs ( int  yesno)
inline

log query methods

Definition at line 177 of file UT_OldPerformance.h.

int UT_OldPerformance::logMemory ( ) const
inline

log query methods

Definition at line 195 of file UT_OldPerformance.h.

void UT_OldPerformance::logMemory ( int  yesno)
inline

log query methods

Definition at line 197 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 180 of file UT_OldPerformance.h.

void UT_OldPerformance::logObjectViewTime ( int  yesno)
inline

log query methods

Definition at line 182 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 170 of file UT_OldPerformance.h.

void UT_OldPerformance::logSolveTime ( bool  enable)
inline

log query methods

Definition at line 172 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 162 of file UT_OldPerformance.h.

void UT_OldPerformance::logTimeFormat ( int  format)
inline

log query methods

Definition at line 163 of file UT_OldPerformance.h.

int UT_OldPerformance::logType ( ) const
inline

log query methods

Definition at line 157 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 185 of file UT_OldPerformance.h.

void UT_OldPerformance::logViewPortTime ( int  yesno)
inline

log query methods

Definition at line 187 of file UT_OldPerformance.h.

int UT_OldPerformance::opHighlight ( ) const
inline

op methods

Definition at line 139 of file UT_OldPerformance.h.

void UT_OldPerformance::opHighlight ( int  yesno)
inline

op methods

Definition at line 140 of file UT_OldPerformance.h.

int UT_OldPerformance::opInfo ( ) const
inline

op methods

Definition at line 136 of file UT_OldPerformance.h.

void UT_OldPerformance::opInfo ( int  yesno)
inline

op methods

Definition at line 137 of file UT_OldPerformance.h.

int UT_OldPerformance::opTiming ( ) const
inline

Definition at line 97 of file UT_OldPerformance.h.

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

Definition at line 109 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: