eckit::distributed::TransportStatistics class

Base classes

class eckit::Statistics

Public static functions

static void reportUnit(std::ostream& out, const char* title, const char* unit, double value, const char* indent = "", bool always = false)
static void reportRate(std::ostream& out, const char* title, unsigned long long value, const char* indent = "", bool always = false)
static void reportRate(std::ostream& out, const std::string& title, size_t bytes, double elapsed, const char* indent = "", bool always = false)
static void reportCount(std::ostream& out, const char* title, size_t value, const char* indent = "", bool always = false)
static void reportBytes(std::ostream& out, const char* title, unsigned long long value, const char* indent = "", bool always = false)
static void reportBytesStats(std::ostream& out, const std::string& title, size_t count, size_t bytes, size_t sumsquared, const char* indent = "", bool always = false)
static void reportTime(std::ostream& out, const char* title, const Timing& value, const char* indent = "", bool always = false)
static void reportTime(std::ostream& out, const char* title, double value, const char* indent = "", bool always = false)
static void reportTimeStats(std::ostream& out, const std::string& title, size_t count, double sum_times, double sum_times_squared, const char* indent = "", bool always = false)
static auto timer() -> Timer&

Constructors, destructors, conversion operators

TransportStatistics()
TransportStatistics(eckit::Stream&)

Public functions

auto operator+=(const TransportStatistics& other) -> TransportStatistics&
auto operator/=(size_t) -> TransportStatistics&
void report(std::ostream& out, const char* indent = "") const
void csvHeader(std::ostream& out) const
void csvRow(std::ostream& out) const
void encode(eckit::Stream&) const

Public variables

size_t sendCount_
size_t receiveCount_
unsigned long long sendSize_
unsigned long long receiveSize_
eckit::Timing sendTiming_
eckit::Timing receiveTiming_
eckit::Timing barrierTiming_
eckit::Timing shutdownTiming_

Friends

auto operator<<(eckit::Stream& s, const TransportStatistics& x) -> eckit::Stream&

Function documentation

static void eckit::distributed::TransportStatistics::reportUnit(std::ostream& out, const char* title, const char* unit, double value, const char* indent = "", bool always = false)

static void eckit::distributed::TransportStatistics::reportRate(std::ostream& out, const char* title, unsigned long long value, const char* indent = "", bool always = false)

static void eckit::distributed::TransportStatistics::reportRate(std::ostream& out, const std::string& title, size_t bytes, double elapsed, const char* indent = "", bool always = false)

static void eckit::distributed::TransportStatistics::reportCount(std::ostream& out, const char* title, size_t value, const char* indent = "", bool always = false)

static void eckit::distributed::TransportStatistics::reportBytes(std::ostream& out, const char* title, unsigned long long value, const char* indent = "", bool always = false)

static void eckit::distributed::TransportStatistics::reportBytesStats(std::ostream& out, const std::string& title, size_t count, size_t bytes, size_t sumsquared, const char* indent = "", bool always = false)

static void eckit::distributed::TransportStatistics::reportTime(std::ostream& out, const char* title, const Timing& value, const char* indent = "", bool always = false)

static void eckit::distributed::TransportStatistics::reportTime(std::ostream& out, const char* title, double value, const char* indent = "", bool always = false)

static void eckit::distributed::TransportStatistics::reportTimeStats(std::ostream& out, const std::string& title, size_t count, double sum_times, double sum_times_squared, const char* indent = "", bool always = false)

static Timer& eckit::distributed::TransportStatistics::timer()