pub struct PgStatEntry {
pub query: String,
pub normalized_template: String,
pub calls: u64,
pub total_exec_time_ms: f64,
pub mean_exec_time_ms: f64,
pub rows: u64,
pub shared_blks_hit: u64,
pub shared_blks_read: u64,
pub seen_in_traces: bool,
}Expand description
A single entry from pg_stat_statements.
Fields§
§query: StringOriginal query text (as normalized by PostgreSQL).
normalized_template: StringTemplate after perf-sentinel SQL normalization.
calls: u64Number of times the query was executed.
total_exec_time_ms: f64Total execution time in milliseconds.
mean_exec_time_ms: f64Mean execution time in milliseconds.
rows: u64Total rows returned or affected.
Number of shared buffer hits.
Number of shared buffer reads (cache misses).
seen_in_traces: boolWhether this template was also seen in trace-based findings.
Trait Implementations§
Source§impl Clone for PgStatEntry
impl Clone for PgStatEntry
Source§fn clone(&self) -> PgStatEntry
fn clone(&self) -> PgStatEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PgStatEntry
impl Debug for PgStatEntry
Source§impl<'de> Deserialize<'de> for PgStatEntry
impl<'de> Deserialize<'de> for PgStatEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PgStatEntry
impl PartialEq for PgStatEntry
Source§impl Serialize for PgStatEntry
impl Serialize for PgStatEntry
impl StructuralPartialEq for PgStatEntry
Auto Trait Implementations§
impl Freeze for PgStatEntry
impl RefUnwindSafe for PgStatEntry
impl Send for PgStatEntry
impl Sync for PgStatEntry
impl Unpin for PgStatEntry
impl UnsafeUnpin for PgStatEntry
impl UnwindSafe for PgStatEntry
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request