public |
Inheritance Graph
graph BT
Statistics
click Statistics "classMinSG_1_1Statistics"
Description
[ Statistics ]
Classes
struct | MinSG::Statistics::Counter |
struct | MinSG::Statistics::Event |
General
Statistics() | |
void | beginFrame(int32_t framNumber) |
void | endFrame() |
uint32_t | getFrameNumberCounter() const |
uint32_t | getFrameDurationCounter() const |
uint32_t | getIORateReadCounter() const |
uint32_t | getIORateWriteCounter() const |
uint32_t | getVBOCounter() const |
uint32_t | getTrianglesCounter() const |
uint32_t | getLinesCounter() const |
uint32_t | getPointsCounter() const |
uint32_t | getNodeCounter() const |
Counters
const uint32_t | COUNTER_KEY_INVALID |
int32_t | getValueAsInt(uint32_t key) const |
double | getValueAsDouble(uint32_t key) const |
void | addValue(uint32_t key, int value) |
void | addValue(uint32_t key, unsigned int value) |
void | addValue(uint32_t key, double value) |
void | setValue(uint32_t key, int value) |
void | setValue(uint32_t key, unsigned int value) |
void | setValue(uint32_t key, double value) |
void | unsetValue(uint32_t key) |
const std::string & | getDescription(uint32_t key) const |
const std::string & | getUnit(uint32_t key) const |
uint32_t | addCounter(const std::string & description, const std::string & unit) |
std::size_t | getNumCounters() const Return the number of counters. This value can be used in a loop iterating over the counters. |
uint32_t | getCounterForDescription(const std::string & description) const |
void | countMesh(const Rendering::Mesh & mesh, uint32_t primitiveCount) |
void | countNode(const Node * node) |
Events
typedef uint8_t | eventType_t |
const eventType_t | EVENT_TYPE_GEOMETRY |
const eventType_t | EVENT_TYPE_IDLE |
const eventType_t | EVENT_TYPE_START_TEST |
const eventType_t | EVENT_TYPE_END_TEST_VISIBLE |
const eventType_t | EVENT_TYPE_END_TEST_INVISIBLE |
const eventType_t | EVENT_TYPE_FRAME_END |
const unsigned int | MAX_NUM_EVENT_TYPES |
bool | areEventsEnabled() const |
void | enableEvents() |
void | disableEvents() |
void | pushEvent( eventType_t type, double value) |
const Event & | getEvent(size_t index) const |
std::size_t | getNumEvents() const Return the number of events. This value can be used in a loop iterating over the events. |
Documentation
function
MinSG::Statistics::Statistics
public |
Statistics( | ) |
Defined in MinSG/Core/Statistics.h:34
function
MinSG::Statistics::beginFrame
public |
void beginFrame( | int32_t | framNumber ) |
Defined in MinSG/Core/Statistics.h:36
function
MinSG::Statistics::endFrame
public |
void endFrame( | ) |
Defined in MinSG/Core/Statistics.h:37
function
MinSG::Statistics::getFrameNumberCounter
public | const | inline |
uint32_t getFrameNumberCounter( | ) const |
Defined in MinSG/Core/Statistics.h:39
function
MinSG::Statistics::getFrameDurationCounter
public | const | inline |
uint32_t getFrameDurationCounter( | ) const |
Defined in MinSG/Core/Statistics.h:42
function
MinSG::Statistics::getIORateReadCounter
public | const | inline |
uint32_t getIORateReadCounter( | ) const |
Defined in MinSG/Core/Statistics.h:45
function
MinSG::Statistics::getIORateWriteCounter
public | const | inline |
uint32_t getIORateWriteCounter( | ) const |
Defined in MinSG/Core/Statistics.h:48
function
MinSG::Statistics::getVBOCounter
public | const | inline |
uint32_t getVBOCounter( | ) const |
Defined in MinSG/Core/Statistics.h:51
function
MinSG::Statistics::getTrianglesCounter
public | const | inline |
uint32_t getTrianglesCounter( | ) const |
Defined in MinSG/Core/Statistics.h:54
function
MinSG::Statistics::getLinesCounter
public | const | inline |
uint32_t getLinesCounter( | ) const |
Defined in MinSG/Core/Statistics.h:57
function
MinSG::Statistics::getPointsCounter
public | const | inline |
uint32_t getPointsCounter( | ) const |
Defined in MinSG/Core/Statistics.h:60
function
MinSG::Statistics::getNodeCounter
public | const | inline |
uint32_t getNodeCounter( | ) const |
Defined in MinSG/Core/Statistics.h:63
variable
MinSG::Statistics::COUNTER_KEY_INVALID
public | static |
const uint32_t COUNTER_KEY_INVALID |
Defined in MinSG/Core/Statistics.h:93
function
MinSG::Statistics::getValueAsInt
public | const | inline |
int32_t getValueAsInt( | uint32_t | key ) const |
Defined in MinSG/Core/Statistics.h:95
function
MinSG::Statistics::getValueAsDouble
public | const | inline |
double getValueAsDouble( | uint32_t | key ) const |
Defined in MinSG/Core/Statistics.h:96
function
MinSG::Statistics::addValue
public | inline |
void addValue( | uint32_t | key, |
int | value | |
) |
Defined in MinSG/Core/Statistics.h:99
function
MinSG::Statistics::addValue
public | inline |
void addValue( | uint32_t | key, |
unsigned int | value | |
) |
Defined in MinSG/Core/Statistics.h:100
function
MinSG::Statistics::addValue
public | inline |
void addValue( | uint32_t | key, |
double | value | |
) |
Defined in MinSG/Core/Statistics.h:101
function
MinSG::Statistics::setValue
public | inline |
void setValue( | uint32_t | key, |
int | value | |
) |
Defined in MinSG/Core/Statistics.h:105
function
MinSG::Statistics::setValue
public | inline |
void setValue( | uint32_t | key, |
unsigned int | value | |
) |
Defined in MinSG/Core/Statistics.h:106
function
MinSG::Statistics::setValue
public | inline |
void setValue( | uint32_t | key, |
double | value | |
) |
Defined in MinSG/Core/Statistics.h:107
function
MinSG::Statistics::unsetValue
public | inline |
void unsetValue( | uint32_t | key ) |
Defined in MinSG/Core/Statistics.h:110
function
MinSG::Statistics::getDescription
public | const | inline |
const std::string & getDescription( | uint32_t | key ) const |
Defined in MinSG/Core/Statistics.h:114
function
MinSG::Statistics::getUnit
public | const | inline |
const std::string & getUnit( | uint32_t | key ) const |
Defined in MinSG/Core/Statistics.h:117
function
MinSG::Statistics::addCounter
public |
uint32_t addCounter( | const std::string & | description, |
const std::string & | unit | |
) |
Create a new counter with the given description and unit.
Parameters
- description
- A short description of the value counted
- unit
- Unit of the value counted
Returns
Key that is used to access the counter
Defined in MinSG/Core/Statistics.h:127
function
MinSG::Statistics::getNumCounters
public | const | inline |
std::size_t getNumCounters( | ) const |
Return the number of counters. This value can be used in a loop iterating over the counters.
Defined in MinSG/Core/Statistics.h:130
function
MinSG::Statistics::getCounterForDescription
public | const |
uint32_t getCounterForDescription( | const std::string & | description ) const |
Search all counters and return the counter that has the same description as the requested one.
Parameters
- description
- Requested description
Returns
Key that is used to access the counter. If there is no counter with the requested description,COUNTER_KEY_INVALIDis returned.
Defined in MinSG/Core/Statistics.h:143
function
MinSG::Statistics::countMesh
public |
void countMesh( | const Rendering::Mesh & | mesh, |
uint32_t | primitiveCount | |
) |
Defined in MinSG/Core/Statistics.h:145
function
MinSG::Statistics::countNode
public |
void countNode( | const Node * | node ) |
Defined in MinSG/Core/Statistics.h:147
typedef
MinSG::Statistics::eventType_t
public |
typedef uint8_t eventType_t |
Defined in MinSG/Core/Statistics.h:169
variable
MinSG::Statistics::EVENT_TYPE_GEOMETRY
public | static |
const eventType_t EVENT_TYPE_GEOMETRY |
Defined in MinSG/Core/Statistics.h:172
variable
MinSG::Statistics::EVENT_TYPE_IDLE
public | static |
const eventType_t EVENT_TYPE_IDLE |
Defined in MinSG/Core/Statistics.h:173
variable
MinSG::Statistics::EVENT_TYPE_START_TEST
public | static |
const eventType_t EVENT_TYPE_START_TEST |
Defined in MinSG/Core/Statistics.h:174
variable
MinSG::Statistics::EVENT_TYPE_END_TEST_VISIBLE
public | static |
const eventType_t EVENT_TYPE_END_TEST_VISIBLE |
Defined in MinSG/Core/Statistics.h:175
variable
MinSG::Statistics::EVENT_TYPE_END_TEST_INVISIBLE
public | static |
const eventType_t EVENT_TYPE_END_TEST_INVISIBLE |
Defined in MinSG/Core/Statistics.h:176
variable
MinSG::Statistics::EVENT_TYPE_FRAME_END
public | static |
const eventType_t EVENT_TYPE_FRAME_END |
Defined in MinSG/Core/Statistics.h:177
variable
MinSG::Statistics::MAX_NUM_EVENT_TYPES
public | static |
const unsigned int MAX_NUM_EVENT_TYPES |
Note: The constants EVENT_TYPE_… with values {8, 9} are used by MinSG::OutOfCore .
Defined in MinSG/Core/Statistics.h:181
function
MinSG::Statistics::areEventsEnabled
public | const | inline |
bool areEventsEnabled( | ) const |
Defined in MinSG/Core/Statistics.h:197
function
MinSG::Statistics::enableEvents
public | inline |
void enableEvents( | ) |
Defined in MinSG/Core/Statistics.h:198
function
MinSG::Statistics::disableEvents
public | inline |
void disableEvents( | ) |
Defined in MinSG/Core/Statistics.h:199
function
MinSG::Statistics::pushEvent
public |
void pushEvent( | eventType_t | type, |
double | value | |
) |
Defined in MinSG/Core/Statistics.h:201
function
MinSG::Statistics::getEvent
public | const | inline |
const Event & getEvent( | size_t | index ) const |
Defined in MinSG/Core/Statistics.h:202
function
MinSG::Statistics::getNumEvents
public | const | inline |
std::size_t getNumEvents( | ) const |
Return the number of events. This value can be used in a loop iterating over the events.
Defined in MinSG/Core/Statistics.h:206