#[non_exhaustive]pub struct PerfAnswer {
pub records: Vec<FrameRecord>,
pub next: u64,
pub dropped: u64,
pub measured: bool,
pub frames: u32,
pub snapshot: Option<HeapSnapshot>,
}Expand description
The frames’ records a Request::Perf asked for, counted as the
contract’s PerfRead counts them.
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.records: Vec<FrameRecord>The kept records numbered since or more, oldest first, the first
max of them.
next: u64The number to read from next time: the one after the last record
answered; 0 for a since past the ring’s next number.
dropped: u64How many records numbered since or more the ring no longer keeps.
measured: boolWhether any frame was measured.
frames: u32The frames run: App::frame_number.
snapshot: Option<HeapSnapshot>The heap snapshot taken after the frame, if one was asked for and the build takes one (a debug build that counts the heap by tag).
Trait Implementations§
Source§impl Clone for PerfAnswer
impl Clone for PerfAnswer
Source§fn clone(&self) -> PerfAnswer
fn clone(&self) -> PerfAnswer
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 PerfAnswer
impl Debug for PerfAnswer
Source§impl<'de> Deserialize<'de> for PerfAnswer
impl<'de> Deserialize<'de> for PerfAnswer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PerfAnswer
Source§impl PartialEq for PerfAnswer
impl PartialEq for PerfAnswer
Source§impl Serialize for PerfAnswer
impl Serialize for PerfAnswer
impl StructuralPartialEq for PerfAnswer
Auto Trait Implementations§
impl Freeze for PerfAnswer
impl RefUnwindSafe for PerfAnswer
impl Send for PerfAnswer
impl Sync for PerfAnswer
impl Unpin for PerfAnswer
impl UnsafeUnpin for PerfAnswer
impl UnwindSafe for PerfAnswer
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