pub struct MetricsSnapshot {Show 19 fields
pub blocks_created: usize,
pub cids_generated: usize,
pub blocks_verified: usize,
pub chunks_created: usize,
pub total_bytes_processed: u64,
pub errors_total: usize,
pub serialization_errors: usize,
pub validation_errors: usize,
pub network_errors: usize,
pub cid_generation: PercentileStats,
pub block_creation: PercentileStats,
pub chunking: PercentileStats,
pub verification: PercentileStats,
pub avg_cid_generation_us: f64,
pub avg_block_size_bytes: f64,
pub throughput_bytes_per_sec: f64,
pub memory_allocations: u64,
pub pool_hit_rate: f64,
pub uptime_seconds: u64,
}Expand description
Snapshot of current metrics for reporting
Fields§
§blocks_created: usizeTotal blocks created
cids_generated: usizeTotal CIDs generated
blocks_verified: usizeTotal blocks verified
chunks_created: usizeTotal chunks created
total_bytes_processed: u64Total bytes processed
errors_total: usizeTotal errors encountered
serialization_errors: usizeSerialization errors
validation_errors: usizeValidation errors
network_errors: usizeNetwork errors
cid_generation: PercentileStatsCID generation latency percentiles
block_creation: PercentileStatsBlock creation latency percentiles
chunking: PercentileStatsChunking latency percentiles
verification: PercentileStatsVerification latency percentiles
avg_cid_generation_us: f64Average CID generation time in microseconds
avg_block_size_bytes: f64Average block size in bytes
throughput_bytes_per_sec: f64Throughput in bytes per second
memory_allocations: u64Total memory allocated in bytes
pool_hit_rate: f64Pool hit rate (0.0 to 1.0)
uptime_seconds: u64Uptime in seconds
Trait Implementations§
Source§impl Clone for MetricsSnapshot
impl Clone for MetricsSnapshot
Source§fn clone(&self) -> MetricsSnapshot
fn clone(&self) -> MetricsSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MetricsSnapshot
impl RefUnwindSafe for MetricsSnapshot
impl Send for MetricsSnapshot
impl Sync for MetricsSnapshot
impl Unpin for MetricsSnapshot
impl UnwindSafe for MetricsSnapshot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more