group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
group2::perf::NetworkCounters Struct Reference

Per-tick network counters maintained by the network code. More...

#include <Profiler.hpp>

Public Attributes

std::atomic< std::uint64_t > bytesSent {0}
std::atomic< std::uint64_t > bytesRecv {0}
std::atomic< std::uint64_t > snapshotsSent {0}
std::atomic< std::uint64_t > packetsSent {0}
std::atomic< std::uint64_t > packetsRecv {0}
std::atomic< std::uint32_t > peakBacklog {0}
std::atomic< std::uint32_t > clientCount {0}

Detailed Description

Per-tick network counters maintained by the network code.

Aggregated and zeroed once per second alongside scope stats.

Member Data Documentation

◆ bytesRecv

std::atomic<std::uint64_t> group2::perf::NetworkCounters::bytesRecv {0}

◆ bytesSent

std::atomic<std::uint64_t> group2::perf::NetworkCounters::bytesSent {0}

◆ clientCount

std::atomic<std::uint32_t> group2::perf::NetworkCounters::clientCount {0}

◆ packetsRecv

std::atomic<std::uint64_t> group2::perf::NetworkCounters::packetsRecv {0}

◆ packetsSent

std::atomic<std::uint64_t> group2::perf::NetworkCounters::packetsSent {0}

◆ peakBacklog

std::atomic<std::uint32_t> group2::perf::NetworkCounters::peakBacklog {0}

◆ snapshotsSent

std::atomic<std::uint64_t> group2::perf::NetworkCounters::snapshotsSent {0}

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