Class ToHostMonitor

Inheritance Relationships

Base Type

Class Documentation

class ToHostMonitor : public Monitor

Monitoring information for the felix-tohost application. ToHostMonitor gathers the hierarchical monitoring data (buffers > readers > decoders) and returns a json string.

Public Functions

inline explicit ToHostMonitor(std::unique_ptr<Writer> writer)

Constructor to initialize the monitor with a writer.

Parameters:

writer -- Unique pointer to a writer

ToHostMonitor(const ToHostMonitor&) = delete
ToHostMonitor &operator=(const ToHostMonitor&) = delete
ToHostMonitor(ToHostMonitor&&) = default
ToHostMonitor &operator=(ToHostMonitor&&) = default
void append_device_stats(const ToHostDeviceStats &dev_stats)

Append to the JSON message device-level information.

Parameters:

dev_stats -- Data structure containing device statistics

void append_dma_stats(const ToHostDmaStats &dma_stats)

Append to the JSON message buffer-level information.

Parameters:

dma_stats -- Data structure containing DMA buffer statistics

void append_reader_stats(const ToHostReaderStats &reader_stats)

Append to the JSON message reader-level information.

Parameters:

reader_stats -- Data structure containing reader statistics

Append to the JSON message decoder-level information.

Parameters:

elink_stats -- Data structure containing e-link statistics