pub struct Callstack<const NF: usize> { /* private fields */ }Expand description
An optimized Callstack struct that represents a single stack trace. No symbols are explicitly held here - the major savings is that we use an external dictionary to store symbols, because the same IPs are used over and over in many stack traces.
To reduce allocations, we only keep MAX_NUM_FRAMES frames.
Implementations§
Source§impl<const NF: usize> Callstack<NF>
impl<const NF: usize> Callstack<NF>
Sourcepub fn from_backtrace_unresolved(bt: &Backtrace) -> Self
pub fn from_backtrace_unresolved(bt: &Backtrace) -> Self
Creates a Callback from a backtrace::Backtrace, preferably unresolved for speed
pub fn compute_hash(&self) -> u64
Trait Implementations§
Auto Trait Implementations§
impl<const NF: usize> Freeze for Callstack<NF>
impl<const NF: usize> RefUnwindSafe for Callstack<NF>
impl<const NF: usize> Send for Callstack<NF>
impl<const NF: usize> Sync for Callstack<NF>
impl<const NF: usize> Unpin for Callstack<NF>
impl<const NF: usize> UnsafeUnpin for Callstack<NF>
impl<const NF: usize> UnwindSafe for Callstack<NF>
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