Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::Statistics Class Reference

Collects various rendering statistics and presents them in a human-readable form. More...

#include <mitsuba/core/statistics.h>

+ Inheritance diagram for mitsuba::Statistics:

Public Member Functions

void registerCounter (const StatsCounter *ctr)
 Register a counter with the statistics collector. More...
 
void logPlugin (const std::string &pname, const std::string &descr)
 Record that a plugin has been loaded. More...
 
void printStats ()
 Print a summary of gathered statistics. More...
 
std::string getStats ()
 Return a string containing gathered statistics. More...
 
void resetAll ()
 Reset all statistics counters. More...
 
virtual const ClassgetClass () const
 Retrieve this object's class. More...
 
- Public Member Functions inherited from Object
 Object ()
 Construct a new object. More...
 
int getRefCount () const
 Return the current reference count. More...
 
void incRef () const
 Increase the reference count of the object by one. More...
 
void decRef (bool autoDeallocate=true) const
 Decrease the reference count of the object and possibly deallocate it. More...
 
virtual std::string toString () const
 Return a human-readable string representation of the object's contents. More...
 

Static Public Member Functions

static StatisticsgetInstance ()
 Return the global stats collector instance. More...
 
static void staticInitialization ()
 Initialize the global statistics collector. More...
 
static void staticShutdown ()
 Free the memory taken by staticInitialization() More...
 
- Static Public Member Functions inherited from Object
static void staticInitialization ()
 Initializes the built-in reference count debugger (if enabled) More...
 
static void staticShutdown ()
 Free the memory taken by staticInitialization() More...
 

Static Public Attributes

static Classm_theClass
 
- Static Public Attributes inherited from Object
static Classm_theClass
 Pointer to the object's class descriptor. More...
 

Protected Member Functions

 Statistics ()
 Create a statistics instance. More...
 
virtual ~Statistics ()
 Virtual destructor. More...
 
- Protected Member Functions inherited from Object
virtual ~Object ()
 Virtual private deconstructor. (Will only be called by ref) More...
 

Detailed Description

Collects various rendering statistics and presents them in a human-readable form.

Remarks
Only the getInstance(), getStats(), and printStats() functions are implemented in the Python bindings.

Constructor & Destructor Documentation

mitsuba::Statistics::Statistics ( )
protected

Create a statistics instance.

virtual mitsuba::Statistics::~Statistics ( )
inlineprotectedvirtual

Virtual destructor.

Member Function Documentation

virtual const Class* mitsuba::Statistics::getClass ( ) const
virtual

Retrieve this object's class.

Reimplemented from Object.

static Statistics* mitsuba::Statistics::getInstance ( )
inlinestatic

Return the global stats collector instance.

std::string mitsuba::Statistics::getStats ( )

Return a string containing gathered statistics.

void mitsuba::Statistics::logPlugin ( const std::string &  pname,
const std::string &  descr 
)

Record that a plugin has been loaded.

void mitsuba::Statistics::printStats ( )

Print a summary of gathered statistics.

void mitsuba::Statistics::registerCounter ( const StatsCounter ctr)

Register a counter with the statistics collector.

void mitsuba::Statistics::resetAll ( )

Reset all statistics counters.

static void mitsuba::Statistics::staticInitialization ( )
static

Initialize the global statistics collector.

static void mitsuba::Statistics::staticShutdown ( )
static

Free the memory taken by staticInitialization()

Member Data Documentation

Class* mitsuba::Statistics::m_theClass
static

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