OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::VertexCacheProfiler Class Reference

Vertex cache profiler. More...

#include <OgreVertexIndexData.h>

+ Inheritance diagram for Ogre::VertexCacheProfiler:
+ Collaboration diagram for Ogre::VertexCacheProfiler:

Public Types

enum  CacheType { FIFO, LRU }
 

Public Member Functions

 VertexCacheProfiler (unsigned int cachesize=16, CacheType cachetype=FIFO)
 
 ~VertexCacheProfiler ()
 
void flush ()
 
unsigned int getHits ()
 
unsigned int getMisses ()
 
unsigned int getSize ()
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info More...
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *ptr)
 placement operator new More...
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info More...
 
void * operator new[] (size_t sz)
 
void profile (const HardwareIndexBufferSharedPtr &indexBuffer)
 
void reset ()
 

Private Member Functions

bool inCache (unsigned int index)
 

Private Attributes

unsigned int buffersize
 
uint32cache
 
unsigned int hit
 
unsigned int miss
 
unsigned int size
 
unsigned int tail
 

Detailed Description

Vertex cache profiler.

Remarks
Utility class for evaluating the effectiveness of the use of the vertex cache by a given index buffer.

Definition at line 286 of file OgreVertexIndexData.h.

Member Enumeration Documentation

Enumerator
FIFO 
LRU 

Definition at line 289 of file OgreVertexIndexData.h.

Constructor & Destructor Documentation

Ogre::VertexCacheProfiler::VertexCacheProfiler ( unsigned int  cachesize = 16,
CacheType  cachetype = FIFO 
)
inline

Definition at line 293 of file OgreVertexIndexData.h.

References Ogre::MEMCATEGORY_GEOMETRY, and OGRE_ALLOC_T.

Ogre::VertexCacheProfiler::~VertexCacheProfiler ( )
inline

Definition at line 299 of file OgreVertexIndexData.h.

References Ogre::MEMCATEGORY_GEOMETRY, and OGRE_FREE.

Member Function Documentation

void Ogre::VertexCacheProfiler::flush ( )
inline

Definition at line 306 of file OgreVertexIndexData.h.

unsigned int Ogre::VertexCacheProfiler::getHits ( )
inline

Definition at line 308 of file OgreVertexIndexData.h.

unsigned int Ogre::VertexCacheProfiler::getMisses ( )
inline

Definition at line 309 of file OgreVertexIndexData.h.

unsigned int Ogre::VertexCacheProfiler::getSize ( void  )
inline

Definition at line 310 of file OgreVertexIndexData.h.

bool Ogre::VertexCacheProfiler::inCache ( unsigned int  index)
private
template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

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

Definition at line 102 of file OgreMemoryAllocatedObject.h.

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

Definition at line 108 of file OgreMemoryAllocatedObject.h.

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

Definition at line 113 of file OgreMemoryAllocatedObject.h.

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

Definition at line 119 of file OgreMemoryAllocatedObject.h.

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

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

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

Definition at line 73 of file OgreMemoryAllocatedObject.h.

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

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

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

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

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

Definition at line 91 of file OgreMemoryAllocatedObject.h.

void Ogre::VertexCacheProfiler::profile ( const HardwareIndexBufferSharedPtr indexBuffer)
void Ogre::VertexCacheProfiler::reset ( void  )
inline

Definition at line 305 of file OgreVertexIndexData.h.

Member Data Documentation

unsigned int Ogre::VertexCacheProfiler::buffersize
private

Definition at line 315 of file OgreVertexIndexData.h.

uint32* Ogre::VertexCacheProfiler::cache
private

Definition at line 313 of file OgreVertexIndexData.h.

unsigned int Ogre::VertexCacheProfiler::hit
private

Definition at line 316 of file OgreVertexIndexData.h.

unsigned int Ogre::VertexCacheProfiler::miss
private

Definition at line 316 of file OgreVertexIndexData.h.

unsigned int Ogre::VertexCacheProfiler::size
private

Definition at line 312 of file OgreVertexIndexData.h.

unsigned int Ogre::VertexCacheProfiler::tail
private

Definition at line 315 of file OgreVertexIndexData.h.


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