![]() |
This class contains a timeline call tree and a map of counters to their values over time. More...
Inheritance diagram for TraceEventTree:Public Types | |
| using | CounterValues = std::vector< std::pair< TraceEvent::TimeStamp, double >> |
| using | CounterValuesMap = std::unordered_map< TfToken, CounterValues, TfToken::HashFunctor > |
| using | CounterMap = std::unordered_map< TfToken, double, TfToken::HashFunctor > |
| using | MarkerValues = std::vector< std::pair< TraceEvent::TimeStamp, TraceThreadId >> |
| using | MarkerValuesMap = std::unordered_map< TfToken, MarkerValues, TfToken::HashFunctor > |
| using | ExtraFieldFn = std::function< void(JsWriter &)> |
| Writes a JSON object representing the data in the call tree that conforms to the Chrome Trace format. More... | |
Public Types inherited from TfRefBase | |
| typedef void(* | UniqueChangedFuncPtr )(TfRefBase const *, bool) |
Public Member Functions | |
| const TraceEventNodeRefPtr & | GetRoot () const |
| Returns the root node of the tree. More... | |
| const CounterValuesMap & | GetCounters () const |
| Returns the map of counter values. More... | |
| const MarkerValuesMap & | GetMarkers () const |
| Returns the map of markers values. More... | |
| CounterMap | GetFinalCounterValues () const |
| Return the final value of the counters in the report. More... | |
| TRACE_API void | WriteChromeTraceObject (JsWriter &writer, ExtraFieldFn extraFields=ExtraFieldFn()) const |
| TRACE_API void | Merge (const TraceEventTreeRefPtr &tree) |
Adds the contexts of tree to this tree. More... | |
| TRACE_API TraceEventTreeRefPtr | Add (const TraceCollection &collection) |
Adds the data from collection to this tree. More... | |
Public Member Functions inherited from TfRefBase | |
| 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... | |
| const TfRefCount & | GetRefCount () const |
| void | SetShouldInvokeUniqueChangedListener (bool shouldCall) |
Public Member Functions inherited from 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 TRACE_API TraceEventTreeRefPtr | New (const TraceCollection &collection, const CounterMap *initialCounterValues=nullptr) |
Creates a new TraceEventTree instance from the data in collection and initialCounterValues. More... | |
| static TraceEventTreeRefPtr | New () |
| static TraceEventTreeRefPtr | New (TraceEventNodeRefPtr root, CounterValuesMap counters, MarkerValuesMap markers) |
Static Public Member Functions inherited from TfRefBase | |
| static TF_API void | SetUniqueChangedListener (UniqueChangedListener listener) |
Additional Inherited Members | |
Protected Member Functions inherited from TfWeakBase | |
| TfRefPtr< Tf_Remnant > | _Register () const |
| template<class T > | |
| TfRefPtr< Tf_Remnant > | _Register (T *tempRmnt) const |
| bool | _HasRemnant () const |
This class contains a timeline call tree and a map of counters to their values over time.
Definition at line 58 of file eventTree.h.
| using ExtraFieldFn = std::function<void(JsWriter&)> |
Writes a JSON object representing the data in the call tree that conforms to the Chrome Trace format.
Definition at line 103 of file eventTree.h.
| TRACE_API TraceEventTreeRefPtr Add | ( | const TraceCollection & | collection | ) |
Adds the data from collection to this tree.
|
inline |
Returns the map of counter values.
Definition at line 93 of file eventTree.h.
| CounterMap GetFinalCounterValues | ( | ) | const |
Return the final value of the counters in the report.
|
inline |
Returns the map of markers values.
Definition at line 96 of file eventTree.h.
|
inline |
Returns the root node of the tree.
Definition at line 90 of file eventTree.h.
| TRACE_API void Merge | ( | const TraceEventTreeRefPtr & | tree | ) |
Adds the contexts of tree to this tree.
|
static |
Creates a new TraceEventTree instance from the data in collection and initialCounterValues.