Taskflow  2.4-master-branch
tf::ChromeTracingObserver Class Reference

observer designed based on chrome tracing format More...

#include <observer.hpp>

Inheritance diagram for tf::ChromeTracingObserver:
Collaboration diagram for tf::ChromeTracingObserver:

Public Member Functions

void dump (std::ostream &ostream) const
 dump the timelines in JSON format to an ostream More...
 
std::string dump () const
 dump the timelines in JSON to a std::string More...
 
void clear ()
 clear the timeline data
 
size_t num_tasks () const
 get the number of total tasks in the observer More...
 
- Public Member Functions inherited from tf::ObserverInterface
virtual ~ObserverInterface ()=default
 virtual destructor
 

Friends

class Executor
 

Detailed Description

observer designed based on chrome tracing format

Member Function Documentation

◆ dump() [1/2]

void tf::ChromeTracingObserver::dump ( std::ostream ostream) const
inline

dump the timelines in JSON format to an ostream

Parameters
ostreamthe target std::ostream to dump

◆ dump() [2/2]

std::string tf::ChromeTracingObserver::dump ( ) const
inline

dump the timelines in JSON to a std::string

Returns
a JSON string

◆ num_tasks()

size_t tf::ChromeTracingObserver::num_tasks ( ) const
inline

get the number of total tasks in the observer

Returns
number of total tasks

The documentation for this class was generated from the following file: