pub struct Graph {
pub root_index: usize,
/* private fields */
}
Fields§
§root_index: usize
Implementations§
Source§impl Graph
impl Graph
Sourcepub fn get_indexed_string(&self, index: usize) -> Option<&str>
pub fn get_indexed_string(&self, index: usize) -> Option<&str>
Gets a string by its index. Indexed strings are exposed in the ‘Other’ type in Node and Edge types.
Sourcepub fn iter(&self) -> NodeIterator<'_> ⓘ
pub fn iter(&self) -> NodeIterator<'_> ⓘ
Gets an iterator over the graph nodes.
Sourcepub fn children(&self, parent: usize) -> Vec<usize>
pub fn children(&self, parent: usize) -> Vec<usize>
Gets a list children of the node at the given index.
Sourcepub fn retained_size(&self, node_index: usize) -> u64
pub fn retained_size(&self, node_index: usize) -> u64
Gets the retained size of a node in the graph. This is the size this node specifically requires the program to retain., i.e. the nodes the given node dominates https://en.wikipedia.org/wiki/Dominator_(graph_theory)
Sourcepub fn get_class_groups(&self, no_retained: bool) -> &[ClassGroup]
pub fn get_class_groups(&self, no_retained: bool) -> &[ClassGroup]
Gets top-level groups for classes to show in a summary view. Sorted by retained size descending by default.
Auto Trait Implementations§
impl !Freeze for Graph
impl !RefUnwindSafe for Graph
impl !Send for Graph
impl !Sync for Graph
impl Unpin for Graph
impl UnwindSafe for Graph
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