pub enum SamplerRequest {
RecordAllocation {
address: u64,
stack_trace: StackTrace,
size: u64,
control_handle: SamplerControlHandle,
},
RecordDeallocation {
address: u64,
stack_trace: StackTrace,
control_handle: SamplerControlHandle,
},
SetProcessInfo {
payload: SamplerSetProcessInfoRequest,
control_handle: SamplerControlHandle,
},
}
Expand description
Interface used to exfiltrate process allocation information.
Variants§
RecordAllocation
Record an allocation.
RecordDeallocation
Record a deallocation.
SetProcessInfo
Communicate relevant process information to facilitate symbolization.
If called several times, the last process_name
prevails, but the
module_map
is added to the existing map for the process. If a client
needs to send a module_map
that does not fit in a single message, they
can split it and send it across several messages.
Implementations§
Source§impl SamplerRequest
impl SamplerRequest
pub fn into_record_allocation( self, ) -> Option<(u64, StackTrace, u64, SamplerControlHandle)>
pub fn into_record_deallocation( self, ) -> Option<(u64, StackTrace, SamplerControlHandle)>
pub fn into_set_process_info( self, ) -> Option<(SamplerSetProcessInfoRequest, SamplerControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SamplerRequest
impl !RefUnwindSafe for SamplerRequest
impl Send for SamplerRequest
impl Sync for SamplerRequest
impl Unpin for SamplerRequest
impl !UnwindSafe for SamplerRequest
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