pub struct DataFlowDiagram {
pub nodes: Vec<DataFlowNode>,
pub edges: Vec<DataFlowEdge>,
}Expand description
Data-flow diagram inferred from a recording.
Fields§
§nodes: Vec<DataFlowNode>All nodes in the graph.
edges: Vec<DataFlowEdge>All edges in the graph.
Implementations§
Source§impl DataFlowDiagram
impl DataFlowDiagram
Sourcepub fn from_recording(rec: &ProfileRecording) -> Self
pub fn from_recording(rec: &ProfileRecording) -> Self
Build a data-flow diagram from a profile recording.
For each lease, finds all spans that wrote to it and all spans that read from it. Creates directed edges: writer-span -> lease -> reader-span. Spans with the same name are collapsed into single nodes.
Sourcepub fn render_html(&self) -> String
pub fn render_html(&self) -> String
Render as self-contained HTML with force-directed layout.
Trait Implementations§
Source§impl Clone for DataFlowDiagram
impl Clone for DataFlowDiagram
Source§fn clone(&self) -> DataFlowDiagram
fn clone(&self) -> DataFlowDiagram
Returns a duplicate of the value. Read more
1.0.0 · 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 DataFlowDiagram
impl RefUnwindSafe for DataFlowDiagram
impl Send for DataFlowDiagram
impl Sync for DataFlowDiagram
impl Unpin for DataFlowDiagram
impl UnwindSafe for DataFlowDiagram
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