|
HDK
|
#include <PDG_NodeStats.h>
Public Types | |
| enum | StatType { eFirstGenerateTime, eLastGenerateTime, eTotalGenerateTime, eFirstCookTime, eLastCookTime, eTotalCookTime, eStatCount } |
| Enumeration of stats stored in this object. More... | |
Public Member Functions | |
| PDG_NodeStats () | |
| Constructs a new node stat instance. More... | |
| void | reset (bool full) |
| Resets all stats on the node. More... | |
| const PDG_WorkItemStateTracker & | stateTracker () const |
| Returns the work item state tracker for this node. More... | |
| PDG_WorkItemStateTracker & | stateTracker () |
| int | cookCount () const |
| Returns the number of times this node has cooked. More... | |
| int | incrementCookCount () |
| Increments the cook count and returns the old value. More... | |
| fpreal | getStat (StatType stat) const |
| Returns the current value of the specified stat type. More... | |
| fpreal | setStat (StatType stat, fpreal value, bool first=false) |
| Sets the value of the specified stat type. More... | |
| fpreal | setTimeStat (StatType stat, bool first=false) |
| Sets te value of the specified stat to the current time. More... | |
| fpreal | addStat (StatType state, fpreal value, bool first=false) |
| Adds the value to the specified state type. More... | |
| fpreal | totalCookTime () const |
| Returns the total time spent cooking work items in the node. More... | |
| fpreal | wallclockCookTime () const |
Definition at line 21 of file PDG_NodeStats.h.
Enumeration of stats stored in this object.
Definition at line 25 of file PDG_NodeStats.h.
| PDG_NodeStats::PDG_NodeStats | ( | ) |
Constructs a new node stat instance.
Adds the value to the specified state type.
|
inline |
Returns the number of times this node has cooked.
Definition at line 63 of file PDG_NodeStats.h.
Returns the current value of the specified stat type.
|
inline |
Increments the cook count and returns the old value.
Definition at line 67 of file PDG_NodeStats.h.
| void PDG_NodeStats::reset | ( | bool | full | ) |
Resets all stats on the node.
Sets the value of the specified stat type.
Sets te value of the specified stat to the current time.
|
inline |
Returns the work item state tracker for this node.
Definition at line 57 of file PDG_NodeStats.h.
|
inline |
Definition at line 59 of file PDG_NodeStats.h.
| fpreal PDG_NodeStats::totalCookTime | ( | ) | const |
Returns the total time spent cooking work items in the node.
| fpreal PDG_NodeStats::wallclockCookTime | ( | ) | const |
Returns the wallclock cook time, e.g. the difference between the first work item starting and the last work item ending.