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 Class * | getClass () 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 Statistics * | getInstance () |
| 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 Class * | m_theClass |
Static Public Attributes inherited from Object | |
| static Class * | m_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... | |
Collects various rendering statistics and presents them in a human-readable form.
|
protected |
Create a statistics instance.
|
inlineprotectedvirtual |
Virtual destructor.
|
virtual |
Retrieve this object's class.
Reimplemented from Object.
|
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 |
Initialize the global statistics collector.
|
static |
Free the memory taken by staticInitialization()
|
static |