Ogre::VertexCacheProfiler Class Reference

Vertex cache profiler. More...

#include <OgreVertexIndexData.h>

Inheritance 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, 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 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 285 of file OgreVertexIndexData.h.

Member Enumeration Documentation

◆ CacheType

Enumerator
FIFO 
LRU 

Definition at line 288 of file OgreVertexIndexData.h.

Constructor & Destructor Documentation

◆ VertexCacheProfiler()

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

Definition at line 292 of file OgreVertexIndexData.h.

References buffersize, cache, FIFO, hit, Ogre::MEMCATEGORY_GEOMETRY, miss, OGRE_ALLOC_T, size, and tail.

◆ ~VertexCacheProfiler()

Ogre::VertexCacheProfiler::~VertexCacheProfiler ( )

Definition at line 298 of file OgreVertexIndexData.h.

References cache, Ogre::MEMCATEGORY_GEOMETRY, and OGRE_FREE.

Member Function Documentation

◆ flush()

void Ogre::VertexCacheProfiler::flush ( )

Definition at line 305 of file OgreVertexIndexData.h.

References buffersize, and tail.

◆ getHits()

unsigned int Ogre::VertexCacheProfiler::getHits ( )

Definition at line 307 of file OgreVertexIndexData.h.

References hit.

◆ getMisses()

unsigned int Ogre::VertexCacheProfiler::getMisses ( )

Definition at line 308 of file OgreVertexIndexData.h.

References miss.

◆ getSize()

unsigned int Ogre::VertexCacheProfiler::getSize ( )

Definition at line 309 of file OgreVertexIndexData.h.

References size.

◆ inCache()

bool Ogre::VertexCacheProfiler::inCache ( unsigned int index)
private

◆ operator delete() [1/3]

void Ogre::AllocatedObject< RenderSysAllocPolicy >::operator delete ( void * ptr)
inherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [2/3]

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

Definition at line 108 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [3/3]

void Ogre::AllocatedObject< RenderSysAllocPolicy >::operator delete ( void * ptr,
void *  )
inherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

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

void Ogre::AllocatedObject< RenderSysAllocPolicy >::operator delete[] ( void * ptr)
inherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

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

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

Definition at line 119 of file OgreMemoryAllocatedObject.h.

◆ operator new() [1/3]

void * Ogre::AllocatedObject< RenderSysAllocPolicy >::operator new ( size_t sz)
inherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

◆ operator new() [2/3]

void * Ogre::AllocatedObject< RenderSysAllocPolicy >::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]

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

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

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

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

Definition at line 91 of file OgreMemoryAllocatedObject.h.

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

void * Ogre::AllocatedObject< RenderSysAllocPolicy >::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.

◆ profile()

void Ogre::VertexCacheProfiler::profile ( const HardwareIndexBufferSharedPtr & indexBuffer)

◆ reset()

void Ogre::VertexCacheProfiler::reset ( )

Definition at line 304 of file OgreVertexIndexData.h.

References buffersize, hit, miss, and tail.

Member Data Documentation

◆ buffersize

unsigned int Ogre::VertexCacheProfiler::buffersize
private

Definition at line 314 of file OgreVertexIndexData.h.

Referenced by VertexCacheProfiler(), flush(), and reset().

◆ cache

uint32* Ogre::VertexCacheProfiler::cache
private

Definition at line 312 of file OgreVertexIndexData.h.

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

◆ hit

unsigned int Ogre::VertexCacheProfiler::hit
private

Definition at line 315 of file OgreVertexIndexData.h.

Referenced by VertexCacheProfiler(), getHits(), and reset().

◆ miss

unsigned int Ogre::VertexCacheProfiler::miss
private

Definition at line 315 of file OgreVertexIndexData.h.

Referenced by VertexCacheProfiler(), getMisses(), and reset().

◆ size

unsigned int Ogre::VertexCacheProfiler::size
private

Definition at line 311 of file OgreVertexIndexData.h.

Referenced by VertexCacheProfiler(), and getSize().

◆ tail

unsigned int Ogre::VertexCacheProfiler::tail
private

Definition at line 314 of file OgreVertexIndexData.h.

Referenced by VertexCacheProfiler(), flush(), and reset().


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

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.