pub struct WriterStats {
pub sequence_id: Option<u64>,
pub buffer: Option<u32>,
pub protocol_abi_versions: Option<u32>,
pub chunk_payload_histogram_counts: Vec<u64>,
pub chunk_payload_histogram_sum: Vec<i64>,
}Expand description
Per TraceWriter stat. Each {producer, trace writer} tuple is publicly visible as a unique sequence ID in the trace.
Fields§
§sequence_id: Option<u64>This matches the TracePacket.trusted_packet_sequence_id and is used to correlate the stats with the actual packet types.
buffer: Option<u32>The buffer index (0..N, as defined in the TraceConfig).
protocol_abi_versions: Option<u32>Which protocol carried this writer’s chunks to the buffer. This is a bitmask of ProtocolAbiVersion (see producer_port.proto). The value is 1 for the SMB (v1) and 2 for the tracing v2 ring buffer. Both bits are set only if a v1 and a v2 writer of the same producer used the same writer ID which should NOT be happening.
chunk_payload_histogram_counts: Vec<u64>These two arrays have the same cardinality and match the cardinality of
chunk_payload_histogram_def + 1 (for the overflow bucket, see below).
sum contains the SUM(entries) and counts contains the COUNT(entries)
for each bucket.
chunk_payload_histogram_sum: Vec<i64>Implementations§
Source§impl WriterStats
impl WriterStats
Sourcepub fn sequence_id(&self) -> u64
pub fn sequence_id(&self) -> u64
Returns the value of sequence_id, or the default value if sequence_id is unset.
Sourcepub fn buffer(&self) -> u32
pub fn buffer(&self) -> u32
Returns the value of buffer, or the default value if buffer is unset.
Sourcepub fn protocol_abi_versions(&self) -> u32
pub fn protocol_abi_versions(&self) -> u32
Returns the value of protocol_abi_versions, or the default value if protocol_abi_versions is unset.
Trait Implementations§
Source§impl Clone for WriterStats
impl Clone for WriterStats
Source§impl Debug for WriterStats
impl Debug for WriterStats
Source§impl Default for WriterStats
impl Default for WriterStats
impl Eq for WriterStats
Source§impl Hash for WriterStats
impl Hash for WriterStats
Source§impl Message for WriterStats
impl Message for WriterStats
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.