Nebula
|
#include <debugtimer.h>
A debug timer for measuring time spent in code blocks.
Inherits Core::RefCounted.
Public Member Functions | |
DebugTimer () | |
constructor | |
virtual | ~DebugTimer () |
destructor | |
void | Setup (const Util::StringAtom &timerName, const Util::StringAtom &group=Util::StringAtom("Ungrouped")) |
setup the timer | |
void | Discard () |
discard the timer | |
bool | IsValid () const |
return true if this timer has been setup | |
void | Start () |
start or continue the timer | |
void | Pause () |
pause the timer | |
void | Stop () |
stop the timer, writes sample to history | |
void | StartAccum () |
start or continue the timer | |
void | StopAccum () |
stop the timer, writes sample to history | |
void | ResetAccum () |
stop the timer, writes sample to history | |
const Util::StringAtom & | GetName () const |
get the timer name | |
const Util::StringAtom & | GetGroup () const |
get the timer group | |
Timing::Time | GetSample () const |
get the most current sample | |
Util::Array< Timing::Time > | GetHistory () const |
get the timer's history | |
Public Member Functions inherited from Core::RefCounted | |
RefCounted () | |
constructor | |
int | GetRefCount () const |
get the current refcount | |
void | AddRef () |
increment refcount by one | |
void | Release () |
decrement refcount and destroy object if refcount is zero | |
bool | IsInstanceOf (const Rtti &rtti) const |
return true if this object is instance of given class | |
bool | IsInstanceOf (const Util::String &className) const |
return true if this object is instance of given class by string | |
bool | IsInstanceOf (const Util::FourCC &classFourCC) const |
return true if this object is instance of given class by fourcc | |
bool | IsA (const Rtti &rtti) const |
return true if this object is instance of given class, or a derived class | |
bool | IsA (const Util::String &rttiName) const |
return true if this object is instance of given class, or a derived class, by string | |
bool | IsA (const Util::FourCC &rttiFourCC) const |
return true if this object is instance of given class, or a derived class, by fourcc | |
const Util::String & | GetClassName () const |
get the class name | |
Util::FourCC | GetClassFourCC () const |
get the class FourCC code | |
Static Public Member Functions | |
static Ptr< DebugTimer > | CreateAsSingleton (const Util::StringAtom &timerName) |
create as singleton | |
static void | DestroySingleton (const Util::StringAtom &timerName) |
create as singleton | |
Static Public Member Functions inherited from Core::RefCounted | |
static void | DumpRefCountingLeaks () |
dump refcounting leaks, call at end of application (NEBULA_DEBUG builds only!) | |
Private Member Functions | |
__DeclareClass (DebugTimer) | |
Additional Inherited Members | |
Protected Member Functions inherited from Core::RefCounted | |
virtual | ~RefCounted () |
destructor (called when refcount reaches zero) | |
Debug::DebugTimer::DebugTimer | ( | ) |
constructor
|
virtual |
destructor
|
private |
|
static |
create as singleton
|
static |
create as singleton
void Debug::DebugTimer::Discard | ( | ) |
discard the timer
|
inline |
get the timer group
Array< Timing::Time > Debug::DebugTimer::GetHistory | ( | ) | const |
get the timer's history
|
inline |
get the timer name
Timing::Time Debug::DebugTimer::GetSample | ( | ) | const |
get the most current sample
|
inline |
return true if this timer has been setup
|
inline |
pause the timer
|
inline |
stop the timer, writes sample to history
void Debug::DebugTimer::Setup | ( | const Util::StringAtom & | timerName, |
const Util::StringAtom & | group = Util::StringAtom("Ungrouped") ) |
setup the timer
|
inline |
start or continue the timer
|
inline |
start or continue the timer
|
inline |
stop the timer, writes sample to history
|
inline |
stop the timer, writes sample to history
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |