Struct FromHostDmaStats
Defined in File fromhost_monitor.hpp
Nested Relationships
Nested Types
Struct Documentation
-
struct FromHostDmaStats
Data structure for the monitoring of a FromHost DMA buffer.
Public Functions
-
FromHostDmaStats get_increment(FromHostDmaStats &prev_dma_stats)
Get the increment of DMA stats compared to previous stats.
- Parameters:
prev_dma_stats -- Previous DMA stats
- Returns:
Incremented DMA stats
-
inline FromHostDmaStats()
Default constructor initializing all values to zero.
-
inline explicit FromHostDmaStats(uint32_t dma_id, uint32_t free_MB, uint64_t msg, uint64_t bytes)
Constructor to initialize DMA stats with specific values.
- Parameters:
dma_id -- DMA ID
free_MB -- Free memory in MB
msg -- Message counter
bytes -- Bytes counter
Public Members
-
uint32_t dmaid = {}
ID of the DMA.
-
uint32_t dma_free_MB = {}
Free memory in the DMA buffer in MB.
-
uint64_t msg_counter = {}
Counter for the number of messages.
-
float msg_rate_Hz = {}
Message rate in Hz.
-
uint64_t bytes_counter = {}
Counter for the number of bytes.
-
float msg_rate_Mbps = {}
Message rate in Mbps.
-
struct ts
Timestamp of the last update.
-
FromHostDmaStats get_increment(FromHostDmaStats &prev_dma_stats)