Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ProfileTimer Class Reference

#include <profileTimer.h>

List of all members.

Public Member Functions

 ProfileTimer (const char *name=0, int maxEntries=MaxEntriesDefault)
 ProfileTimer (const ProfileTimer &other)
 ~ProfileTimer ()
void init (const char *name, int maxEntries=MaxEntriesDefault)
void on ()
void mark (const char *tag)
void off ()
void off (const char *tag)
double getTotalTime () const
void consolidateTo (ostream &out=cout) const
void printTo (ostream &out=cout) const

Static Public Member Functions

void consolidateAllTo (ostream &out=cout)
void printAllTo (ostream &out=cout)

Protected Member Functions

double getTime ()

Protected Attributes

ProfileTimer * _next
double _on
double _elapsedTime
const char * _name
int _maxEntries
int _entryCount
TimerEntry_entries
int _autoTimerCount

Static Protected Attributes

ProfileTimer * _head

Private Types

enum  { MaxEntriesDefault = 4096 }

Friends

class ProfileTimer::AutoTimer


Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
MaxEntriesDefault 

Definition at line 49 of file profileTimer.h.


Constructor & Destructor Documentation

ProfileTimer::ProfileTimer const char *  name = 0,
int  maxEntries = MaxEntriesDefault
 

Definition at line 36 of file profileTimer.cxx.

References _head, _next, and init().

ProfileTimer::ProfileTimer const ProfileTimer &  other  ) 
 

Definition at line 48 of file profileTimer.cxx.

References _maxEntries, _name, and init().

ProfileTimer::~ProfileTimer  ) 
 

Definition at line 69 of file profileTimer.cxx.

References _head, and _next.


Member Function Documentation

void ProfileTimer::consolidateAllTo ostream &  out = cout  )  [static]
 

Definition at line 110 of file profileTimer.cxx.

void ProfileTimer::consolidateTo ostream &  out = cout  )  const
 

Definition at line 119 of file profileTimer.cxx.

References _entries, _entryCount, ProfileTimer::TimerEntry::_tag, and ProfileTimer::TimerEntry::_time.

double ProfileTimer::getTime  )  [inline, protected]
 

Definition at line 29 of file profileTimer.I.

References _elapsedTime, and _on.

double ProfileTimer::getTotalTime  )  const
 

Definition at line 99 of file profileTimer.cxx.

References _entries, _entryCount, and ProfileTimer::TimerEntry::_time.

void ProfileTimer::init const char *  name,
int  maxEntries = MaxEntriesDefault
 

Definition at line 89 of file profileTimer.cxx.

References _elapsedTime, _entries, _entryCount, _maxEntries, and _on.

Referenced by ProfileTimer().

void ProfileTimer::mark const char *  tag  )  [inline]
 

Definition at line 39 of file profileTimer.I.

void ProfileTimer::off const char *  tag  )  [inline]
 

Definition at line 63 of file profileTimer.I.

void ProfileTimer::off  )  [inline]
 

Definition at line 56 of file profileTimer.I.

void ProfileTimer::on  )  [inline]
 

Definition at line 23 of file profileTimer.I.

References _elapsedTime, _on, TrueClock::get_ptr(), TrueClock::get_short_time(), and INLINE.

void ProfileTimer::printAllTo ostream &  out = cout  )  [static]
 

Definition at line 146 of file profileTimer.cxx.

void ProfileTimer::printTo ostream &  out = cout  )  const
 

Definition at line 155 of file profileTimer.cxx.

References _entries, _entryCount, ProfileTimer::TimerEntry::_tag, and ProfileTimer::TimerEntry::_time.


Friends And Related Function Documentation

friend class ProfileTimer::AutoTimer [friend]
 

Definition at line 106 of file profileTimer.h.


Member Data Documentation

int ProfileTimer::_autoTimerCount [protected]
 

Definition at line 102 of file profileTimer.h.

double ProfileTimer::_elapsedTime [protected]
 

Definition at line 97 of file profileTimer.h.

Referenced by getTime(), init(), and on().

TimerEntry* ProfileTimer::_entries [protected]
 

Definition at line 101 of file profileTimer.h.

Referenced by consolidateTo(), getTotalTime(), init(), and printTo().

int ProfileTimer::_entryCount [protected]
 

Definition at line 100 of file profileTimer.h.

Referenced by consolidateTo(), getTotalTime(), init(), and printTo().

ProfileTimer * ProfileTimer::_head [static, protected]
 

Definition at line 33 of file profileTimer.cxx.

Referenced by ProfileTimer(), and ~ProfileTimer().

int ProfileTimer::_maxEntries [protected]
 

Definition at line 99 of file profileTimer.h.

Referenced by init(), and ProfileTimer().

const char* ProfileTimer::_name [protected]
 

Definition at line 98 of file profileTimer.h.

Referenced by ProfileTimer().

ProfileTimer* ProfileTimer::_next [protected]
 

Definition at line 90 of file profileTimer.h.

Referenced by ProfileTimer(), and ~ProfileTimer().

double ProfileTimer::_on [protected]
 

Definition at line 96 of file profileTimer.h.

Referenced by getTime(), init(), and on().


The documentation for this class was generated from the following files:
Generated on Fri May 2 00:54:23 2003 for Panda by doxygen1.3