pub struct ProfilingInfo {
pub metrics: HashMap<String, String>,
pub children: Vec<ProfilingInfo>,
}Expand description
ProfilingInfo is a recursive type containing metrics for each node in DuckDB’s query plan.
There are two types of nodes: the “QUERY_ROOT” and “OPERATOR” nodes.
The “QUERY_ROOT” refers exclusively to the top-level node; its metrics are measured over the entire query.
The “OPERATOR” nodes refer to the individual operators in the query plan.
Fields§
§metrics: HashMap<String, String>The metrics for the node, represented as a map from metric name to metric value. The actual format and units of the metric varies between metric kinds. For example,
- “ROWS_RETURNED” is an integer, formatted as a string
- “LATENCY” is a double-floating point number measuring the total query time in seconds, formatted as a string
- “OPERATOR_NAME” is a string
- “EXTRA_INFO” is a map of its own encoded as a string
children: Vec<ProfilingInfo>The children of the node and their respective metrics.
Trait Implementations§
Source§impl Clone for ProfilingInfo
impl Clone for ProfilingInfo
Source§fn clone(&self) -> ProfilingInfo
fn clone(&self) -> ProfilingInfo
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 moreAuto Trait Implementations§
impl Freeze for ProfilingInfo
impl RefUnwindSafe for ProfilingInfo
impl Send for ProfilingInfo
impl Sync for ProfilingInfo
impl Unpin for ProfilingInfo
impl UnsafeUnpin for ProfilingInfo
impl UnwindSafe for ProfilingInfo
Blanket Implementations§
impl<T> Allocation for T
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