|
Arachne 1.0
Arachne - the perpetual stitcher of Wikidata entities.
|
Thread-safe counters describing client-side networking activity. More...
#include <include/utils.hpp>
Public Member Functions | |
| network_metrics () | |
| Zero-initialize per-status counters. | |
Public Attributes | |
| std::atomic< unsigned > | requests |
| Finished attempts (success or failure). | |
| std::atomic< unsigned > | retries { 0 } |
| Number of retry cycles triggered. | |
| std::atomic< long long > | sleep_ms |
| Total backoff duration slept (ms). | |
| std::atomic< long long > | network_ms |
| Total time spent in libcurl (ms). | |
| std::atomic< size_t > | bytes_received |
| Sum of response body sizes (bytes). | |
| std::array< std::atomic< unsigned >, 600 > | statuses |
| Per-code histogram for HTTP 0..599. | |
Thread-safe counters describing client-side networking activity.
Semantics:
All counters are atomics and rely on the default sequentially consistent operations provided by std::atomic. Readers observe eventually consistent snapshots without additional synchronization.
| corespace::network_metrics::network_metrics | ( | ) |
Zero-initialize per-status counters.
The constructor explicitly clears the statuses histogram.
Definition at line 28 of file utils.cpp.
| std::atomic<size_t> corespace::network_metrics::bytes_received |
| std::atomic<long long> corespace::network_metrics::network_ms |
| std::atomic<unsigned> corespace::network_metrics::requests |
| std::atomic<unsigned> corespace::network_metrics::retries { 0 } |
| std::atomic<long long> corespace::network_metrics::sleep_ms |
| std::array<std::atomic<unsigned>, 600> corespace::network_metrics::statuses |