25 #ifndef PXR_BASE_TRACE_EVENT_NODE_H
26 #define PXR_BASE_TRACE_EVENT_NODE_H
62 static TraceEventNodeRefPtr
New() {
73 TraceEventNodeRefPtrVector&& children,
74 const bool separateEvents) {
94 void Append(TraceEventNodeRefPtr node);
136 return _fromSeparateEvents;
146 TraceEventNodeRefPtrVector&& children,
150 , _category(category)
151 , _beginTime(beginTime)
153 , _children(std::move(children))
154 , _fromSeparateEvents(separateEvents)
162 TraceEventNodeRefPtrVector _children;
163 bool _fromSeparateEvents;
170 #endif // PXR_BASE_TRACE_EVENT_NODE_H
TfRefPtr< T > TfCreateRefPtr(T *ptr)
void AddAttribute(const TfToken &key, const AttributeData &attr)
Add data to this node.
TimeStamp GetBeginTime()
Returns the time that this scope started.
static TraceEventNodeRefPtr New(const TfToken &key, const TraceCategoryId category, const TimeStamp beginTime, const TimeStamp endTime, TraceEventNodeRefPtrVector &&children, const bool separateEvents)
bool IsFromSeparateEvents() const
TfToken GetKey()
Returns the name of this node.
static TraceEventNodeRefPtr New()
TraceCategoryId GetCategory() const
Returns the category of this node.
PXR_NAMESPACE_OPEN_SCOPE TF_DECLARE_REF_PTRS(TraceEventNode)
TraceEventNodeRefPtr Append(const TfToken &key, TraceCategoryId category, TimeStamp beginTime, TimeStamp endTime, bool separateEvents)
TraceEvent::TimeStamp TimeStamp
TimeStamp GetEndTime()
Returns the time that this scope ended.
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
uint64_t TimeStamp
Time in "ticks".
std::multimap< TfToken, AttributeData > AttributeMap
void SetBeginAndEndTimesFromChildren()
TraceEventData AttributeData
uint32_t TraceCategoryId
Categories that a TraceReporter can use to filter events.
const AttributeMap & GetAttributes() const
Return the data associated with this node.
const TraceEventNodeRefPtrVector & GetChildrenRef()
Returns references to the children of this node.