You can use this class to query generation or cook time stats a pdg.Node, using one of the enum entries in the pdg.nodeStatType enumeration. The stats are cleared each time the node cooks.
Methods ¶
stat(type:
pdg.nodeStatType) ->
float`
Returns the stored value for the specified stat type.
stateCount(state)
→ int
Returns the total number of work items currently in the the specified pdg.workItemState.
workItemCount()
→ int
Returns the total number of work items in the node.
cookCount
→ int
Property
The total number of times this node has been involved in a graph cook.
totalCookTime
→ float
Property
The total cook time of all work items. This is effectively the sum of the cook duration of each work item, and therefore may be larger than the measured wallclock cook time for the node if multiple work items run concurrently.
wallclockCookTime
→ float
Property
The time difference between the first work item starting and the last work item finishing. If the node spends a large amount of time without any active work items, then this value may be larger than the total cook time.