Class ToHostMonitor
Defined in File tohost_monitor.hpp
Inheritance Relationships
Base Type
public Monitor
(Class Monitor)
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::string &fifoname)
-
void append_device_stats(const std::string &ts, const std::string &hostname, const ToHostDeviceStats &s)
append to the JSON message device-level information.
- Parameters:
ts -- the timestamp
hostname -- the hostname
s -- data structure containing device statistics
-
void append_dma_stats(const std::string &ts, const std::string &hostname, int deviceid, const ToHostDmaStats &s)
append to the JSON message buffer-level information.
- Parameters:
ts -- the timestamp
hostname -- the hostname
deviceid -- the device identifier.
s -- data structure containing DMA buffer statistics
-
void append_reader_stats(const std::string &ts, const std::string &hostname, int deviceid, int dma_id, const ToHostReaderStats &s)
append to the JSON message reader-level information.
- Parameters:
ts -- the timestamp
hostname -- the hostname
deviceid -- the device identifier.
dma_id -- the dma identifier
s -- data structure containing reader statistics
-
void append_elink_stats(const std::string &ts, const std::string &hostname, int device, int dma_id, int reader_id, const ToHostElinkStats &s)
append to the JSON message decoder-level information.
- Parameters:
ts -- the timestamp
hostname -- the hostname
deviceid -- the device identifier.
dma_id -- the dma identifier
reader_id -- the reader id
s -- data structure containing e-link statistics
-
inline explicit ToHostMonitor(std::string &fifoname)