HDK
|
#include <aggregateTree.h>
Public Types | |
using | This = TraceAggregateTree |
using | ThisPtr = TraceAggregateTreePtr |
using | ThisRefPtr = TraceAggregateTreeRefPtr |
using | TimeStamp = TraceEvent::TimeStamp |
using | EventTimes = std::map< TfToken, TimeStamp > |
using | CounterMap = TfHashMap< TfToken, double, TfToken::HashFunctor > |
![]() | |
typedef void(* | UniqueChangedFuncPtr )(TfRefBase const *, bool) |
Public Member Functions | |
TraceAggregateNodePtr | GetRoot () |
Returns the root node of the tree. More... | |
const EventTimes & | GetEventTimes () const |
Returns a map of event keys to total inclusive time. More... | |
const CounterMap & | GetCounters () const |
TRACE_API int | GetCounterIndex (const TfToken &key) const |
TRACE_API bool | AddCounter (const TfToken &key, int index, double totalValue) |
TRACE_API void | Clear () |
Removes all data and nodes from the tree. More... | |
TRACE_API void | Append (const TraceEventTreeRefPtr &eventTree, const TraceCollection &collection) |
![]() | |
TfRefBase () | |
TfRefBase (TfRefBase const &) | |
TfRefBase & | operator= (TfRefBase const &) |
size_t | GetCurrentCount () const |
Return the current reference count of this object. More... | |
bool | IsUnique () const |
Return true if only one TfRefPtr points to this object. More... | |
void | SetShouldInvokeUniqueChangedListener (bool shouldCall) |
![]() | |
TfWeakBase () | |
TfWeakBase (const TfWeakBase &) | |
const TfWeakBase & | __GetTfWeakBase__ () const |
const TfWeakBase & | operator= (const TfWeakBase &) |
void | EnableNotification2 () const |
TF_API void const * | GetUniqueIdentifier () const |
Static Public Member Functions | |
static ThisRefPtr | New () |
Create an empty tree. More... | |
![]() | |
static TF_API void | SetUniqueChangedListener (UniqueChangedListener listener) |
Friends | |
class | Trace_AggregateTreeBuilder |
Additional Inherited Members | |
![]() | |
virtual TF_API | ~TfRefBase () |
![]() | |
~TfWeakBase () | |
TfRefPtr< Tf_Remnant > | _Register () const |
template<class T > | |
TfRefPtr< Tf_Remnant > | _Register (T *tempRmnt) const |
bool | _HasRemnant () const |
A representation of a call tree. Each node represents one or more calls that occurred in the trace. Multiple calls to a child node are aggregated into one node.
Definition at line 48 of file aggregateTree.h.
using TraceAggregateTree::CounterMap = TfHashMap<TfToken, double, TfToken::HashFunctor> |
Definition at line 56 of file aggregateTree.h.
using TraceAggregateTree::EventTimes = std::map<TfToken, TimeStamp> |
Definition at line 55 of file aggregateTree.h.
Definition at line 50 of file aggregateTree.h.
using TraceAggregateTree::ThisPtr = TraceAggregateTreePtr |
Definition at line 51 of file aggregateTree.h.
using TraceAggregateTree::ThisRefPtr = TraceAggregateTreeRefPtr |
Definition at line 52 of file aggregateTree.h.
Definition at line 54 of file aggregateTree.h.
Add a counter to the tree. This method can be used to restore a previous trace state and tree. Note, that the counter being added must have a unique key and index. The method will return false if a key or index already exists.
TRACE_API void TraceAggregateTree::Append | ( | const TraceEventTreeRefPtr & | eventTree, |
const TraceCollection & | collection | ||
) |
Creates new nodes and counter data from data in eventTree
and collection
.
Returns the numeric index associated with a counter key. Counter values on the event nodes will have to be looked up by the numeric index.
|
inline |
Returns a map of counters (counter keys), associated with their total accumulated value. Each individual event node in the tree may also hold on to an inclusive and exclusive value for the given counter.
Definition at line 72 of file aggregateTree.h.
|
inline |
Returns a map of event keys to total inclusive time.
Definition at line 67 of file aggregateTree.h.
|
inline |
Returns the root node of the tree.
Definition at line 64 of file aggregateTree.h.
|
inlinestatic |
Create an empty tree.
Definition at line 59 of file aggregateTree.h.
|
friend |
Definition at line 104 of file aggregateTree.h.