pub struct ShadowBufferStats {
pub packets_seen: Option<u64>,
pub packets_in_both: Option<u64>,
pub packets_only_v1: Option<u64>,
pub packets_only_v2: Option<u64>,
pub patches_attempted: Option<u64>,
pub v1_patches_succeeded: Option<u64>,
pub v2_patches_succeeded: Option<u64>,
}Expand description
Statistics for TRACE_BUFFER_V2_SHADOW_MODE comparison. Only populated when the buffer is configured with shadow mode.
Fields§
§packets_seen: Option<u64>Total num. packets read. This is not affected by capping of the hasher to 32K elements.
packets_in_both: Option<u64>Num. packets found in both V1 and V2 buffers (matched by content hash).
packets_only_v1: Option<u64>Num. packets found only in V1 buffer but not in V2.
packets_only_v2: Option<u64>Num. packets found only in V2 buffer but not in V1.
patches_attempted: Option<u64>Num. patch operations attempted.
v1_patches_succeeded: Option<u64>Num. patches that succeeded on V1 buffer.
v2_patches_succeeded: Option<u64>Num. patches that succeeded on V2 buffer.
Implementations§
Source§impl ShadowBufferStats
impl ShadowBufferStats
Sourcepub fn packets_seen(&self) -> u64
pub fn packets_seen(&self) -> u64
Returns the value of packets_seen, or the default value if packets_seen is unset.
Sourcepub fn packets_in_both(&self) -> u64
pub fn packets_in_both(&self) -> u64
Returns the value of packets_in_both, or the default value if packets_in_both is unset.
Sourcepub fn packets_only_v1(&self) -> u64
pub fn packets_only_v1(&self) -> u64
Returns the value of packets_only_v1, or the default value if packets_only_v1 is unset.
Sourcepub fn packets_only_v2(&self) -> u64
pub fn packets_only_v2(&self) -> u64
Returns the value of packets_only_v2, or the default value if packets_only_v2 is unset.
Sourcepub fn patches_attempted(&self) -> u64
pub fn patches_attempted(&self) -> u64
Returns the value of patches_attempted, or the default value if patches_attempted is unset.
Sourcepub fn v1_patches_succeeded(&self) -> u64
pub fn v1_patches_succeeded(&self) -> u64
Returns the value of v1_patches_succeeded, or the default value if v1_patches_succeeded is unset.
Sourcepub fn v2_patches_succeeded(&self) -> u64
pub fn v2_patches_succeeded(&self) -> u64
Returns the value of v2_patches_succeeded, or the default value if v2_patches_succeeded is unset.
Trait Implementations§
Source§impl Clone for ShadowBufferStats
impl Clone for ShadowBufferStats
Source§fn clone(&self) -> ShadowBufferStats
fn clone(&self) -> ShadowBufferStats
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ShadowBufferStats
impl Debug for ShadowBufferStats
Source§impl Default for ShadowBufferStats
impl Default for ShadowBufferStats
Source§impl Message for ShadowBufferStats
impl Message for ShadowBufferStats
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self.