pub struct RunInsightV2 {
pub version: u16,
pub findings: Vec<FindingV2>,
pub throughput: ThroughputInsightV2,
pub memory: MemoryInsightV2,
pub parallelism: ParallelismInsightV2,
pub serial_regions: Vec<SerialRegionV2>,
pub stages: Vec<StageAttributionV2>,
pub backends: Vec<BackendAttributionV2>,
pub caches: Vec<CacheEffectivenessV2>,
pub retries: Vec<RetryRecordV2>,
pub coverage: InsightCoverageV2,
}Expand description
Every derived answer for one run.
Fields§
§version: u16§findings: Vec<FindingV2>Ranked conclusions; the first is the run’s limiting factor.
throughput: ThroughputInsightV2§memory: MemoryInsightV2§parallelism: ParallelismInsightV2§serial_regions: Vec<SerialRegionV2>§stages: Vec<StageAttributionV2>Micro-functions sorted by summed time, largest first.
backends: Vec<BackendAttributionV2>§caches: Vec<CacheEffectivenessV2>§retries: Vec<RetryRecordV2>§coverage: InsightCoverageV2Implementations§
Source§impl RunInsightV2
impl RunInsightV2
Sourcepub fn derive(profile: &CausalProfileV2) -> Self
pub fn derive(profile: &CausalProfileV2) -> Self
Derive every answer from one finished profile.
Sourcepub fn bottleneck(&self) -> &FindingV2
pub fn bottleneck(&self) -> &FindingV2
The run’s limiting factor, or an insufficient-evidence finding.
Sourcepub fn render_summary(&self) -> String
pub fn render_summary(&self) -> String
Render the operator summary, leading with the bottleneck.
The first line is the conclusion. Everything after it is the evidence for that conclusion, in the order an operator would ask for it.
Trait Implementations§
Source§impl Clone for RunInsightV2
impl Clone for RunInsightV2
Source§fn clone(&self) -> RunInsightV2
fn clone(&self) -> RunInsightV2
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 RunInsightV2
impl Debug for RunInsightV2
Source§impl<'de> Deserialize<'de> for RunInsightV2
impl<'de> Deserialize<'de> for RunInsightV2
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
impl Eq for RunInsightV2
Source§impl PartialEq for RunInsightV2
impl PartialEq for RunInsightV2
Source§impl Serialize for RunInsightV2
impl Serialize for RunInsightV2
impl StructuralPartialEq for RunInsightV2
Auto Trait Implementations§
impl Freeze for RunInsightV2
impl RefUnwindSafe for RunInsightV2
impl Send for RunInsightV2
impl Sync for RunInsightV2
impl Unpin for RunInsightV2
impl UnsafeUnpin for RunInsightV2
impl UnwindSafe for RunInsightV2
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