Seastar
High performance C++ framework for concurrent servers
Public Member Functions | Public Attributes | List of all members
seastar::net::qp_stats_good Struct Reference

Public Member Functions

void update_pkts_bunch (uint64_t count)
 
void update_copy_stats (uint64_t nr_frags, uint64_t bytes)
 
void update_frags_stats (uint64_t nfrags, uint64_t nbytes)
 

Public Attributes

uint64_t bytes
 
uint64_t nr_frags
 
uint64_t copy_frags
 
uint64_t copy_bytes
 
uint64_t packets
 
uint64_t last_bunch
 

Member Function Documentation

◆ update_copy_stats()

void seastar::net::qp_stats_good::update_copy_stats ( uint64_t  nr_frags,
uint64_t  bytes 
)
inline

Increment the appropriate counters when a few fragments have been processed in a copy-way.

Parameters
nr_fragsNumber of copied fragments
bytesNumber of copied bytes

◆ update_frags_stats()

void seastar::net::qp_stats_good::update_frags_stats ( uint64_t  nfrags,
uint64_t  nbytes 
)
inline

Increment total fragments and bytes statistics

Parameters
nfragsNumber of processed fragments
nbytesNumber of bytes in the processed fragments

◆ update_pkts_bunch()

void seastar::net::qp_stats_good::update_pkts_bunch ( uint64_t  count)
inline

Update the packets bunch related statistics.

Update the last packets bunch size and the total packets counter.

Parameters
countNumber of packets in the last packets bunch.

The documentation for this struct was generated from the following file: