| HDK
    | 
#include <eventNode.h>
 Inheritance diagram for TraceEventNode:
 Inheritance diagram for TraceEventNode:| Public Types | |
| using | TimeStamp = TraceEvent::TimeStamp | 
| using | AttributeData = TraceEventData | 
| using | AttributeMap = std::multimap< TfToken, AttributeData > | 
|  Public Types inherited from TfRefBase | |
| typedef void(* | UniqueChangedFuncPtr )(TfRefBase const *, bool) | 
| Public Member Functions | |
| TraceEventNodeRefPtr | Append (const TfToken &key, TraceCategoryId category, TimeStamp beginTime, TimeStamp endTime, bool separateEvents) | 
| void | Append (TraceEventNodeRefPtr node) | 
| Appends nodeas a child node.  More... | |
| TfToken | GetKey () | 
| Returns the name of this node.  More... | |
| TraceCategoryId | GetCategory () const | 
| Returns the category of this node.  More... | |
| void | SetBeginAndEndTimesFromChildren () | 
| const AttributeMap & | GetAttributes () const | 
| Return the data associated with this node.  More... | |
| void | AddAttribute (const TfToken &key, const AttributeData &attr) | 
| Add data to this node.  More... | |
| bool | IsFromSeparateEvents () const | 
| Profile Data Accessors | |
| TimeStamp | GetBeginTime () | 
| Returns the time that this scope started.  More... | |
| TimeStamp | GetEndTime () | 
| Returns the time that this scope ended.  More... | |
| Children Accessors | |
| const TraceEventNodeRefPtrVector & | GetChildrenRef () | 
| Returns references to the children of this node.  More... | |
|  Public Member Functions inherited from TfRefBase | |
| 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 TfRefPtrpoints to this object.  More... | |
| void | SetShouldInvokeUniqueChangedListener (bool shouldCall) | 
| Static Public Member Functions | |
| static TraceEventNodeRefPtr | New () | 
| static TraceEventNodeRefPtr | New (const TfToken &key, const TraceCategoryId category, const TimeStamp beginTime, const TimeStamp endTime, TraceEventNodeRefPtrVector &&children, const bool separateEvents) | 
|  Static Public Member Functions inherited from TfRefBase | |
| static TF_API void | SetUniqueChangedListener (UniqueChangedListener listener) | 
| Additional Inherited Members | |
|  Protected Member Functions inherited from TfRefBase | |
| virtual TF_API | ~TfRefBase () | 
TraceEventNode is used to represents call tree of a trace. Each node represents a Begin-End trace event pair, or a single Timespan event. This is useful for timeline views of a trace.
Definition at line 36 of file eventNode.h.
Definition at line 40 of file eventNode.h.
| using TraceEventNode::AttributeMap = std::multimap<TfToken, AttributeData> | 
Definition at line 41 of file eventNode.h.
Definition at line 39 of file eventNode.h.
| void TraceEventNode::AddAttribute | ( | const TfToken & | key, | 
| const AttributeData & | attr | ||
| ) | 
Add data to this node.
| TraceEventNodeRefPtr TraceEventNode::Append | ( | const TfToken & | key, | 
| TraceCategoryId | category, | ||
| TimeStamp | beginTime, | ||
| TimeStamp | endTime, | ||
| bool | separateEvents | ||
| ) | 
Appends a new child node with key, category, beginTime and endTime. 
| void TraceEventNode::Append | ( | TraceEventNodeRefPtr | node | ) | 
Appends node as a child node. 
| 
 | inline | 
Return the data associated with this node.
Definition at line 111 of file eventNode.h.
| 
 | inline | 
Returns the time that this scope started.
Definition at line 93 of file eventNode.h.
| 
 | inline | 
Returns the category of this node.
Definition at line 83 of file eventNode.h.
| 
 | inline | 
Returns references to the children of this node.
Definition at line 104 of file eventNode.h.
| 
 | inline | 
Returns the time that this scope ended.
Definition at line 96 of file eventNode.h.
| 
 | inline | 
Returns the name of this node.
Definition at line 80 of file eventNode.h.
| 
 | inline | 
Returns whether this node was created from a Begin-End pair or a single Timespan event.
Definition at line 118 of file eventNode.h.
| 
 | inlinestatic | 
Creates a new root node.
Definition at line 45 of file eventNode.h.
| 
 | inlinestatic | 
Creates a new node with key, category, beginTime and endTime. 
Definition at line 52 of file eventNode.h.
| void TraceEventNode::SetBeginAndEndTimesFromChildren | ( | ) | 
Sets this node's begin and end time to the time extents of its direct children.