OGRE  1.9.0
Ogre::ProfileInstance Class Reference

Represents an individual profile call. More...

#include <OgreProfiler.h>

Inheritance diagram for Ogre::ProfileInstance:

Public Types

typedef Ogre::map< String, ProfileInstance * >::type ProfileChildren
 

Public Member Functions

 ProfileInstance (void)
 
virtual ~ProfileInstance (void)
 
void logResults ()
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete (void *ptr, void *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info
 
void * operator new (size_t sz, void *ptr)
 placement operator new
 
void * operator new[] (size_t sz)
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info
 
void reset ()
 
bool watchForLimit (const String &profileName, Real limit, bool greaterThan=true)
 
bool watchForLimit (Real limit, bool greaterThan=true)
 
bool watchForMax (const String &profileName)
 
bool watchForMax (void)
 
bool watchForMin (const String &profileName)
 
bool watchForMin (void)
 

Public Attributes

ulong accum
 Represents the total time of all child profiles to subtract from this profile.
 
ProfileChildren children
 
ulong currTime
 The time this profile was started.
 
ProfileFrame frame
 
ulong frameNumber
 
uint hierarchicalLvl
 The hierarchical level of this profile, 0 being the root profile.
 
ProfileHistory history
 
String name
 The name of the profile.
 
ProfileInstanceparent
 The name of the parent, null if root.
 

Friends

class Profiler
 

Detailed Description

Represents an individual profile call.

Definition at line 174 of file OgreProfiler.h.

Member Typedef Documentation

◆ ProfileChildren

Constructor & Destructor Documentation

◆ ProfileInstance()

Ogre::ProfileInstance::ProfileInstance ( void )

◆ ~ProfileInstance()

virtual Ogre::ProfileInstance::~ProfileInstance ( void )
virtual

Member Function Documentation

◆ logResults()

void Ogre::ProfileInstance::logResults ( )

◆ operator delete() [1/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void * ptr)
inherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [2/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void * ptr,
const char * ,
int ,
const char *  )
inherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [3/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void * ptr,
void *  )
inherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

◆ operator delete[]() [1/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void * ptr)
inherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

◆ operator delete[]() [2/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void * ptr,
const char * ,
int ,
const char *  )
inherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

◆ operator new() [1/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t sz)
inherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

◆ operator new() [2/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t sz,
const char * file,
int line,
const char * func )
inherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

◆ operator new() [3/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t sz,
void * ptr )
inherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

◆ operator new[]() [1/2]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new[] ( size_t sz)
inherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

◆ operator new[]() [2/2]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new[] ( size_t sz,
const char * file,
int line,
const char * func )
inherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

◆ reset()

void Ogre::ProfileInstance::reset ( )

◆ watchForLimit() [1/2]

bool Ogre::ProfileInstance::watchForLimit ( const String & profileName,
Real limit,
bool greaterThan = true )

◆ watchForLimit() [2/2]

bool Ogre::ProfileInstance::watchForLimit ( Real limit,
bool greaterThan = true )

Definition at line 188 of file OgreProfiler.h.

References Ogre::ProfileHistory::currentTimePercent, and history.

◆ watchForMax() [1/2]

bool Ogre::ProfileInstance::watchForMax ( const String & profileName)

◆ watchForMax() [2/2]

bool Ogre::ProfileInstance::watchForMax ( void )

◆ watchForMin() [1/2]

bool Ogre::ProfileInstance::watchForMin ( const String & profileName)

◆ watchForMin() [2/2]

bool Ogre::ProfileInstance::watchForMin ( void )

Friends And Related Symbol Documentation

◆ Profiler

friend class Profiler
friend

Definition at line 176 of file OgreProfiler.h.

Member Data Documentation

◆ accum

ulong Ogre::ProfileInstance::accum

Represents the total time of all child profiles to subtract from this profile.

Definition at line 218 of file OgreProfiler.h.

◆ children

ProfileChildren Ogre::ProfileInstance::children

Definition at line 206 of file OgreProfiler.h.

◆ currTime

ulong Ogre::ProfileInstance::currTime

The time this profile was started.

Definition at line 214 of file OgreProfiler.h.

◆ frame

ProfileFrame Ogre::ProfileInstance::frame

Definition at line 208 of file OgreProfiler.h.

◆ frameNumber

ulong Ogre::ProfileInstance::frameNumber

Definition at line 209 of file OgreProfiler.h.

◆ hierarchicalLvl

uint Ogre::ProfileInstance::hierarchicalLvl

The hierarchical level of this profile, 0 being the root profile.

Definition at line 221 of file OgreProfiler.h.

◆ history

ProfileHistory Ogre::ProfileInstance::history

Definition at line 211 of file OgreProfiler.h.

Referenced by watchForLimit(), watchForMax(), and watchForMin().

◆ name

String Ogre::ProfileInstance::name

The name of the profile.

Definition at line 201 of file OgreProfiler.h.

◆ parent

ProfileInstance* Ogre::ProfileInstance::parent

The name of the parent, null if root.

Definition at line 204 of file OgreProfiler.h.


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