pub struct ProfilingNode { /* private fields */ }Expand description
An owned node of the query-profiling tree: the metrics recorded at this node (name → value, both strings) plus its child nodes, in DuckDB’s order.
Materialised from duckdb_get_profiling_info, so it stays valid after further
queries and after the connection is dropped.
Implementations§
Source§impl ProfilingNode
impl ProfilingNode
Sourcepub fn metrics(&self) -> &HashMap<String, String>
pub fn metrics(&self) -> &HashMap<String, String>
All metrics recorded at this node (metric name → value string).
Sourcepub fn metric(&self, key: &str) -> Option<&str>
pub fn metric(&self, key: &str) -> Option<&str>
The value of a single metric at this node, if present.
Sourcepub fn children(&self) -> &[ProfilingNode]
pub fn children(&self) -> &[ProfilingNode]
This node’s child nodes, in DuckDB’s order.
Trait Implementations§
Source§impl Clone for ProfilingNode
impl Clone for ProfilingNode
Source§fn clone(&self) -> ProfilingNode
fn clone(&self) -> ProfilingNode
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 ProfilingNode
impl Debug for ProfilingNode
Source§impl Default for ProfilingNode
impl Default for ProfilingNode
Source§fn default() -> ProfilingNode
fn default() -> ProfilingNode
Returns the “default value” for a type. Read more
impl Eq for ProfilingNode
Source§impl PartialEq for ProfilingNode
impl PartialEq for ProfilingNode
Source§fn eq(&self, other: &ProfilingNode) -> bool
fn eq(&self, other: &ProfilingNode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProfilingNode
Auto Trait Implementations§
impl Freeze for ProfilingNode
impl RefUnwindSafe for ProfilingNode
impl Send for ProfilingNode
impl Sync for ProfilingNode
impl Unpin for ProfilingNode
impl UnsafeUnpin for ProfilingNode
impl UnwindSafe for ProfilingNode
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