Struct pprof_util::StackProfile
source · pub struct StackProfile {
pub annotations: Vec<String>,
pub stacks: Vec<(WeightedStack, Option<usize>)>,
pub mappings: Vec<Mapping>,
}
Expand description
A minimal representation of a profile that can be parsed from the jemalloc heap profile.
Fields§
§annotations: Vec<String>
§stacks: Vec<(WeightedStack, Option<usize>)>
§mappings: Vec<Mapping>
Implementations§
source§impl StackProfile
impl StackProfile
source§impl StackProfile
impl StackProfile
pub fn push_stack(&mut self, stack: WeightedStack, annotation: Option<&str>)
pub fn push_mapping(&mut self, mapping: Mapping)
pub fn iter(&self) -> StackProfileIter<'_> ⓘ
Trait Implementations§
source§impl Default for StackProfile
impl Default for StackProfile
source§fn default() -> StackProfile
fn default() -> StackProfile
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StackProfile
impl RefUnwindSafe for StackProfile
impl Send for StackProfile
impl Sync for StackProfile
impl Unpin for StackProfile
impl UnwindSafe for StackProfile
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