Struct profile_traits::mem::Reporter
source · pub struct Reporter(pub IpcSender<ReporterRequest>);
Expand description
A memory reporter is capable of measuring some data structure of interest. It’s structured as
an IPC sender that a ReporterRequest
in transmitted over. ReporterRequest
objects in turn
encapsulate the channel on which the memory profiling information is to be sent.
In many cases, clients construct Reporter
objects by creating an IPC sender/receiver pair and
registering the receiving end with the router so that messages from the memory profiler end up
injected into the client’s event loop.
Tuple Fields§
§0: IpcSender<ReporterRequest>
Implementations§
source§impl Reporter
impl Reporter
sourcepub fn collect_reports(&self, reports_chan: ReportsChan)
pub fn collect_reports(&self, reports_chan: ReportsChan)
Collect one or more memory reports. Returns true on success, and false on failure.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Reporter
impl<'de> Deserialize<'de> for Reporter
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
Auto Trait Implementations§
impl Freeze for Reporter
impl !RefUnwindSafe for Reporter
impl Send for Reporter
impl !Sync for Reporter
impl Unpin for Reporter
impl UnwindSafe for Reporter
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