25 #ifndef PXR_BASE_TRACE_AGGREGATE_TREE_H
26 #define PXR_BASE_TRACE_AGGREGATE_TREE_H
64 TraceAggregateNodePtr
GetRoot() {
return _root; }
90 const TraceEventTreeRefPtr& eventTree,
98 TraceAggregateNodeRefPtr _root;
101 _CounterIndexMap _counterIndexMap;
109 #endif // PXR_BASE_TRACE_AGGREGATE_TREE_H
TfRefPtr< T > TfCreateRefPtr(T *ptr)
TraceEvent::TimeStamp TimeStamp
std::map< TfToken, TimeStamp > EventTimes
TF_DECLARE_WEAK_AND_REF_PTRS(TraceAggregateTree)
TRACE_API bool AddCounter(const TfToken &key, int index, double totalValue)
TRACE_API void Clear()
Removes all data and nodes from the tree.
TRACE_API int GetCounterIndex(const TfToken &key) const
const EventTimes & GetEventTimes() const
Returns a map of event keys to total inclusive time.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
TraceAggregateNodePtr GetRoot()
Returns the root node of the tree.
#define PXR_NAMESPACE_CLOSE_SCOPE
const CounterMap & GetCounters() const
uint64_t TimeStamp
Time in "ticks".
TRACE_API void Append(const TraceEventTreeRefPtr &eventTree, const TraceCollection &collection)
TraceAggregateTreeRefPtr ThisRefPtr
friend class Trace_AggregateTreeBuilder
static ThisRefPtr New()
Create an empty tree.
TraceAggregateTreePtr ThisPtr
TfHashMap< TfToken, double, TfToken::HashFunctor > CounterMap