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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert