Enum callgrind::CallgrindClientRequest [−][src]
pub enum CallgrindClientRequest { ToggleCollection, // some variants omitted }
A callgrind (part of valgrind) client request.
Construct a variant and execute it using now.
Start profiling using start()
and stop using stop()
.
Variants
ToggleCollection
Toggle statistics collection on or off.
When first called after Self::start()
, will toggle statistics collection off.
Methods
impl CallgrindClientRequest
[src]
impl CallgrindClientRequest
pub fn now(self) -> u64
[src]
pub fn now(self) -> u64
Execute callgrind client request now.
pub fn start()
[src]
pub fn start()
Start.
pub fn stop(name: Option<&str>)
[src]
pub fn stop(name: Option<&str>)
Stop with an optional name to pass when dumping statistics.
Trait Implementations
impl Debug for CallgrindClientRequest
[src]
impl Debug for CallgrindClientRequest
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for CallgrindClientRequest
[src]
impl Copy for CallgrindClientRequest
impl Clone for CallgrindClientRequest
[src]
impl Clone for CallgrindClientRequest
fn clone(&self) -> CallgrindClientRequest
[src]
fn clone(&self) -> CallgrindClientRequest
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for CallgrindClientRequest
[src]
impl PartialEq for CallgrindClientRequest
fn eq(&self, other: &CallgrindClientRequest) -> bool
[src]
fn eq(&self, other: &CallgrindClientRequest) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &CallgrindClientRequest) -> bool
[src]
fn ne(&self, other: &CallgrindClientRequest) -> bool
This method tests for !=
.
impl Eq for CallgrindClientRequest
[src]
impl Eq for CallgrindClientRequest
impl PartialOrd for CallgrindClientRequest
[src]
impl PartialOrd for CallgrindClientRequest
fn partial_cmp(&self, other: &CallgrindClientRequest) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &CallgrindClientRequest) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &CallgrindClientRequest) -> bool
[src]
fn lt(&self, other: &CallgrindClientRequest) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &CallgrindClientRequest) -> bool
[src]
fn le(&self, other: &CallgrindClientRequest) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &CallgrindClientRequest) -> bool
[src]
fn gt(&self, other: &CallgrindClientRequest) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &CallgrindClientRequest) -> bool
[src]
fn ge(&self, other: &CallgrindClientRequest) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for CallgrindClientRequest
[src]
impl Ord for CallgrindClientRequest
fn cmp(&self, other: &CallgrindClientRequest) -> Ordering
[src]
fn cmp(&self, other: &CallgrindClientRequest) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for CallgrindClientRequest
[src]
impl Hash for CallgrindClientRequest
Auto Trait Implementations
impl !Send for CallgrindClientRequest
impl !Send for CallgrindClientRequest
impl !Sync for CallgrindClientRequest
impl !Sync for CallgrindClientRequest