enum PerfCommand {
Eprintln {
opts: SharedOpts,
},
Samply {
opts: SharedOpts,
},
Cachegrind {
opts: SharedOpts,
},
Benchmark {
id: String,
opts: SharedOpts,
},
Compare {
base: String,
modified: String,
},
}
Variants§
Eprintln
Run profile_local eprintln
.
This executes the compiler on the given benchmarks and stores its stderr output.
Fields
opts: SharedOpts
Samply
Run profile_local samply
This executes the compiler on the given benchmarks and profiles it with samply
.
You need to install samply
, e.g. using cargo install samply
.
Fields
opts: SharedOpts
Cachegrind
Run profile_local cachegrind
.
This executes the compiler on the given benchmarks under Cachegrind
.
Fields
opts: SharedOpts
Benchmark
Run compile benchmarks with a locally built compiler.
Compare
Compare the results of two previously executed benchmark runs.
Implementations§
Source§impl PerfCommand
impl PerfCommand
Trait Implementations§
Source§impl Clone for PerfCommand
impl Clone for PerfCommand
Source§fn clone(&self) -> PerfCommand
fn clone(&self) -> PerfCommand
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl CommandFactory for PerfCommand
impl CommandFactory for PerfCommand
Source§impl Debug for PerfCommand
impl Debug for PerfCommand
Source§impl FromArgMatches for PerfCommand
impl FromArgMatches for PerfCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.Source§impl Parser for PerfCommand
impl Parser for PerfCommand
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Source§impl Subcommand for PerfCommand
impl Subcommand for PerfCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command
] so it can instantiate self
via
[FromArgMatches::update_from_arg_matches_mut
] Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self
can parse a specific subcommandAuto Trait Implementations§
impl Freeze for PerfCommand
impl RefUnwindSafe for PerfCommand
impl Send for PerfCommand
impl Sync for PerfCommand
impl Unpin for PerfCommand
impl UnwindSafe for PerfCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 120 bytes
Size for each variant:
Eprintln
: 104 bytesSamply
: 104 bytesCachegrind
: 104 bytesBenchmark
: 120 bytesCompare
: 56 bytes