Struct FromHostElinkStats

Nested Relationships

Nested Types

Struct Documentation

struct FromHostElinkStats

Data structure for the monitoring of a FromHost e-link.

Public Functions

void on_processed_msg(const uint32_t size_bytes)

Update stats when a message is processed.

Parameters:

size_bytes -- Size of the processed message in bytes

FromHostElinkStats get_increment(FromHostElinkStats &prev_stats)

Get the increment of e-link stats compared to previous stats.

Parameters:

prev_stats -- Previous e-link stats

Returns:

Incremented e-link stats

FromHostElinkStats() = default

Default constructor.

inline explicit FromHostElinkStats(uint64_t id)

Constructor to initialize e-link stats with a specific ID.

Parameters:

elink_id -- E-link ID

Public Members

E-link ID.

uint64_t processed_msg = 0

Number of processed messages.

uint64_t processed_bytes = 0

Number of processed bytes.

uint64_t largest_msg_size = 0

Size of the largest message.

float rate_msg_Hz = 0

Message rate in Hz.

float rate_msg_Mbps = 0

Message rate in Mbps.

uint64_t dropped_msg = 0

Number of dropped messages.

struct ts

Timestamp of the last update.