Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
Loading...
Searching...
No Matches
kcenon::logger::async::batch_processor::processing_stats Struct Reference

Processing statistics. More...

#include <batch_processor.h>

Collaboration diagram for kcenon::logger::async::batch_processor::processing_stats:
Collaboration graph

Public Member Functions

void reset ()
 

Public Attributes

std::atomic< uint64_t > total_batches {0}
 
std::atomic< uint64_t > total_entries {0}
 
std::atomic< uint64_t > dropped_entries {0}
 
std::atomic< uint64_t > back_pressure_events {0}
 
std::atomic< uint64_t > dynamic_size_adjustments {0}
 
std::atomic< uint64_t > flush_by_size {0}
 
std::atomic< uint64_t > flush_by_time {0}
 
std::atomic< uint64_t > flush_by_manual {0}
 
std::atomic< double > average_batch_size {0.0}
 
std::atomic< double > average_processing_time_ms {0.0}
 

Detailed Description

Processing statistics.

Definition at line 91 of file batch_processor.h.

Member Function Documentation

◆ reset()

void kcenon::logger::async::batch_processor::processing_stats::reset ( )
inline

Definition at line 105 of file batch_processor.h.

105 {
106 total_batches = 0;
107 total_entries = 0;
108 dropped_entries = 0;
111 flush_by_size = 0;
112 flush_by_time = 0;
113 flush_by_manual = 0;
114 average_batch_size = 0.0;
116 }

References average_batch_size, average_processing_time_ms, back_pressure_events, dropped_entries, dynamic_size_adjustments, flush_by_manual, flush_by_size, flush_by_time, total_batches, and total_entries.

Referenced by kcenon::logger::async::batch_processor::reset_stats().

Here is the caller graph for this function:

Member Data Documentation

◆ average_batch_size

std::atomic<double> kcenon::logger::async::batch_processor::processing_stats::average_batch_size {0.0}

Definition at line 102 of file batch_processor.h.

102{0.0};

Referenced by reset(), and kcenon::logger::async::batch_processor::update_stats().

◆ average_processing_time_ms

std::atomic<double> kcenon::logger::async::batch_processor::processing_stats::average_processing_time_ms {0.0}

Definition at line 103 of file batch_processor.h.

103{0.0};

Referenced by reset(), and kcenon::logger::async::batch_processor::update_stats().

◆ back_pressure_events

std::atomic<uint64_t> kcenon::logger::async::batch_processor::processing_stats::back_pressure_events {0}

Definition at line 95 of file batch_processor.h.

95{0};

Referenced by kcenon::logger::async::batch_processor::handle_back_pressure(), and reset().

◆ dropped_entries

std::atomic<uint64_t> kcenon::logger::async::batch_processor::processing_stats::dropped_entries {0}

Definition at line 94 of file batch_processor.h.

94{0};

Referenced by kcenon::logger::async::batch_processor::add_entry(), and reset().

◆ dynamic_size_adjustments

std::atomic<uint64_t> kcenon::logger::async::batch_processor::processing_stats::dynamic_size_adjustments {0}

Definition at line 96 of file batch_processor.h.

96{0};

Referenced by kcenon::logger::async::batch_processor::adjust_batch_size(), and reset().

◆ flush_by_manual

std::atomic<uint64_t> kcenon::logger::async::batch_processor::processing_stats::flush_by_manual {0}

Definition at line 100 of file batch_processor.h.

100{0};

Referenced by reset().

◆ flush_by_size

std::atomic<uint64_t> kcenon::logger::async::batch_processor::processing_stats::flush_by_size {0}

Definition at line 98 of file batch_processor.h.

98{0};

Referenced by kcenon::logger::async::batch_processor::process_loop_iteration(), and reset().

◆ flush_by_time

std::atomic<uint64_t> kcenon::logger::async::batch_processor::processing_stats::flush_by_time {0}

Definition at line 99 of file batch_processor.h.

99{0};

Referenced by kcenon::logger::async::batch_processor::process_loop_iteration(), and reset().

◆ total_batches

std::atomic<uint64_t> kcenon::logger::async::batch_processor::processing_stats::total_batches {0}

◆ total_entries

std::atomic<uint64_t> kcenon::logger::async::batch_processor::processing_stats::total_entries {0}

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