|
srs-control 0.2.2
|
Class for analysis taskflow. More...
#include <TaskDiagram.hpp>

Public Types | |
| using | InputType = bool |
| using | OutputType = std::size_t |
Public Member Functions | |
| TaskDiagram (AnalysisHandle &data_processor, std::size_t n_lines=1) | |
| Constructor with number of pipelines. | |
| void | construct_taskflow_and_run (BufferQueue &data_queue, const std::atomic< bool > &is_stopped) |
| Run the taskflow and block the current thread until finished. | |
| auto | run_task (BufferQueue &data_queue, std::size_t line_number) -> bool |
| auto | is_taskflow_abort_ready () const -> bool |
| auto | is_done () const -> bool |
| auto | operator() (std::size_t line_number) const -> std::string_view |
| auto | get_data_bytes () const -> uint64_t |
| auto | get_n_lines () const -> std::size_t |
| auto | get_struct_data () -> const StructData * |
| void | register_report (AppReport &report) |
Private Types | |
| using | TimePoint = std::chrono::time_point<std::chrono::steady_clock, std::chrono::nanoseconds> |
Private Member Functions | |
| void | construct_taskflow_line (tf::Taskflow &taskflow, std::size_t line_number) |
| void | start_time_record (std::size_t line_num) |
| void | stop_time_record (std::size_t line_num) |
| template<typename PrevConverter, typename ThisTask> | |
| auto | emplace_to_taskflow (ThisTask ¤t_task, std::pair< const PrevConverter &, tf::Task > &prev_task, tf::Taskflow &taskflow, std::size_t line_number) -> std::optional< std::pair< const ThisTask &, tf::Task > > |
| template<typename PrevConverter, ConverterType ThisTask> | |
| auto | create_task_imp (std::optional< ThisTask > ¤t_task, std::optional< std::pair< const PrevConverter &, tf::Task > > &prev_task, tf::Taskflow &taskflow, std::size_t line_number) -> std::optional< std::pair< const ThisTask &, tf::Task > > |
| template<typename PrevConverter, SinkType ThisTask> | |
| auto | create_task_imp (ThisTask ¤t_task, std::optional< std::pair< const PrevConverter &, tf::Task > > &prev_task, tf::Taskflow &taskflow, std::size_t line_number) -> std::optional< std::pair< const ThisTask &, tf::Task > > |
Private Attributes | |
| std::atomic< bool > | is_done_ = false |
| std::size_t | n_lines_ = 1 |
| tf::Executor | tf_executor_ |
| tf::Taskflow | main_taskflow_ |
| std::vector< tf::Taskflow > | taskflow_lines_ |
| std::vector< BufferQueue::Token > | consumer_tokens_ |
| std::vector< std::atomic< bool > > | is_pipeline_stopped_ |
| std::vector< LargeBuffer > | raw_data_ |
| std::optional< process::Raw2DelimRawConverter > | raw_to_delim_raw_converter_ |
| std::optional< process::StructDeserializer > | struct_deserializer_converter_ |
| std::optional< process::Struct2ProtoConverter > | struct_to_proto_converter_ |
| std::optional< process::ProtoSerializer > | proto_serializer_converter_ |
| std::optional< process::ProtoDelimSerializer > | proto_delim_serializer_converter_ |
| std::atomic< uint64_t > | total_read_data_bytes_ = 0 |
| std::vector< AppReport::TaskStat > | stats_ |
| std::vector< TimePoint > | last_times_ |
| gsl::not_null< sink::Manager * > | sinks_ |
| AppReport * | report_ |
Class for analysis taskflow.
Definition at line 34 of file TaskDiagram.hpp.
| using srs::workflow::TaskDiagram::InputType = bool |
Definition at line 45 of file TaskDiagram.hpp.
| using srs::workflow::TaskDiagram::OutputType = std::size_t |
Definition at line 46 of file TaskDiagram.hpp.
|
private |
Definition at line 92 of file TaskDiagram.hpp.
|
explicit |
Constructor with number of pipelines.
| data_processor | Pointer to srs::workflow::Handler |
| n_lines | Number of pipelines |
Definition at line 30 of file TaskDiagram.cpp.
| void srs::workflow::TaskDiagram::construct_taskflow_and_run | ( | BufferQueue & | data_queue, |
| const std::atomic< bool > & | is_stopped ) |
Run the taskflow and block the current thread until finished.
Definition at line 67 of file TaskDiagram.cpp.
|
private |
Definition at line 189 of file TaskDiagram.cpp.
|
private |
Definition at line 155 of file TaskDiagram.cpp.
|
private |
Definition at line 177 of file TaskDiagram.cpp.
|
private |
Definition at line 135 of file TaskDiagram.cpp.
|
inlinenodiscard |
Definition at line 60 of file TaskDiagram.hpp.
|
inlinenodiscard |
Definition at line 61 of file TaskDiagram.hpp.
|
inline |
Definition at line 63 of file TaskDiagram.hpp.
|
inline |
Definition at line 54 of file TaskDiagram.hpp.
| auto srs::workflow::TaskDiagram::is_taskflow_abort_ready | ( | ) | const -> bool |
Definition at line 124 of file TaskDiagram.cpp.
|
inlinenodiscard |
Definition at line 55 of file TaskDiagram.hpp.
|
inline |
Definition at line 72 of file TaskDiagram.hpp.
| auto srs::workflow::TaskDiagram::run_task | ( | BufferQueue & | data_queue, |
| std::size_t | line_number ) -> bool |
Definition at line 55 of file TaskDiagram.cpp.
|
inlineprivate |
Definition at line 100 of file TaskDiagram.hpp.
|
inlineprivate |
Definition at line 106 of file TaskDiagram.hpp.
|
private |
Definition at line 80 of file TaskDiagram.hpp.
|
private |
Definition at line 75 of file TaskDiagram.hpp.
|
private |
Definition at line 81 of file TaskDiagram.hpp.
|
private |
Definition at line 93 of file TaskDiagram.hpp.
|
private |
Definition at line 78 of file TaskDiagram.hpp.
|
private |
Definition at line 76 of file TaskDiagram.hpp.
|
private |
Definition at line 88 of file TaskDiagram.hpp.
|
private |
Definition at line 87 of file TaskDiagram.hpp.
|
private |
Definition at line 82 of file TaskDiagram.hpp.
|
private |
Definition at line 84 of file TaskDiagram.hpp.
|
private |
Definition at line 96 of file TaskDiagram.hpp.
|
private |
Definition at line 95 of file TaskDiagram.hpp.
|
private |
Definition at line 91 of file TaskDiagram.hpp.
|
private |
Definition at line 85 of file TaskDiagram.hpp.
|
private |
Definition at line 86 of file TaskDiagram.hpp.
|
private |
Definition at line 79 of file TaskDiagram.hpp.
|
private |
Definition at line 77 of file TaskDiagram.hpp.
|
private |
Definition at line 90 of file TaskDiagram.hpp.