pub struct TraceBuffer { /* private fields */ }Expand description
Output buffer for Ipt::get_trace_buffer: an 8-byte-aligned byte buffer sized to hold a
GetTraceBuffer (opcode 2) response. Iterate the per-thread records it holds with
TraceBuffer::iter.
Implementations§
Source§impl TraceBuffer
impl TraceBuffer
Sourcepub fn with_capacity(capacity: u64) -> Self
pub fn with_capacity(capacity: u64) -> Self
Allocates space for at least capacity bytes of trace data (size it with
Ipt::get_trace_buffer_size).
Sourcepub const fn iter(&self) -> TraceBufferIter<'_> ⓘ
pub const fn iter(&self) -> TraceBufferIter<'_> ⓘ
Iterates the per-thread (header, raw Intel PT trace)
records
Trait Implementations§
Source§impl Clone for TraceBuffer
impl Clone for TraceBuffer
Source§fn clone(&self) -> TraceBuffer
fn clone(&self) -> TraceBuffer
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 TraceBuffer
impl Debug for TraceBuffer
Source§impl<'a> IntoIterator for &'a TraceBuffer
impl<'a> IntoIterator for &'a TraceBuffer
Source§impl PartialEq for TraceBuffer
impl PartialEq for TraceBuffer
impl StructuralPartialEq for TraceBuffer
Auto Trait Implementations§
impl Freeze for TraceBuffer
impl RefUnwindSafe for TraceBuffer
impl Send for TraceBuffer
impl Sync for TraceBuffer
impl Unpin for TraceBuffer
impl UnsafeUnpin for TraceBuffer
impl UnwindSafe for TraceBuffer
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