#[non_exhaustive]pub struct CallSiteStats {
pub frames: [u64; 8],
pub frame_count: u8,
pub count: u64,
pub total_bytes: u64,
}Available on crate feature
backtraces only.Expand description
One row in the per-call-site report.
Frames are raw return addresses, top of stack first. The
frames[..frame_count] slice is the captured trace; the rest
is zero. Symbolication happens at report-generation time
(shipped in v0.9.2 behind the symbolicate feature).
§Stability
Marked #[non_exhaustive] as of v1.0.0. New counter fields
(e.g. per-bucket high-water marks) may be added in future
minor versions without bumping the major version. Reading
fields by name is fully stable. Iterate via
ModAlloc::call_sites rather
than constructing literals.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.frames: [u64; 8]Raw return addresses, top of stack first.
frame_count: u8Number of valid frames in frames.
count: u64Number of allocations attributed to this call site.
total_bytes: u64Total bytes allocated at this call site (across all recorded events).
Trait Implementations§
Source§impl Clone for CallSiteStats
impl Clone for CallSiteStats
Source§fn clone(&self) -> CallSiteStats
fn clone(&self) -> CallSiteStats
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 CallSiteStats
impl Debug for CallSiteStats
Source§impl Default for CallSiteStats
impl Default for CallSiteStats
Source§fn default() -> CallSiteStats
fn default() -> CallSiteStats
Returns the “default value” for a type. Read more
impl Copy for CallSiteStats
Auto Trait Implementations§
impl Freeze for CallSiteStats
impl RefUnwindSafe for CallSiteStats
impl Send for CallSiteStats
impl Sync for CallSiteStats
impl Unpin for CallSiteStats
impl UnsafeUnpin for CallSiteStats
impl UnwindSafe for CallSiteStats
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