Struct rustc_session::config::InstrumentXRay
source · pub struct InstrumentXRay {
pub always: bool,
pub never: bool,
pub ignore_loops: bool,
pub instruction_threshold: Option<usize>,
pub skip_entry: bool,
pub skip_exit: bool,
}
Expand description
Settings for -Z instrument-xray
flag.
Fields§
§always: bool
-Z instrument-xray=always
, force instrumentation
never: bool
-Z instrument-xray=never
, disable instrumentation
ignore_loops: bool
-Z instrument-xray=ignore-loops
, ignore presence of loops,
instrument functions based only on instruction count
instruction_threshold: Option<usize>
-Z instrument-xray=instruction-threshold=N
, explicitly set instruction threshold
for instrumentation, or None
to use compiler’s default
skip_entry: bool
-Z instrument-xray=skip-entry
, do not instrument function entry
skip_exit: bool
-Z instrument-xray=skip-exit
, do not instrument function exit
Trait Implementations§
source§impl Clone for InstrumentXRay
impl Clone for InstrumentXRay
source§fn clone(&self) -> InstrumentXRay
fn clone(&self) -> InstrumentXRay
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InstrumentXRay
impl Debug for InstrumentXRay
source§impl Default for InstrumentXRay
impl Default for InstrumentXRay
source§fn default() -> InstrumentXRay
fn default() -> InstrumentXRay
source§impl DepTrackingHash for InstrumentXRay
impl DepTrackingHash for InstrumentXRay
fn hash( &self, hasher: &mut DefaultHasher, _: ErrorOutputType, _for_crate_hash: bool )
source§impl Hash for InstrumentXRay
impl Hash for InstrumentXRay
source§impl PartialEq<InstrumentXRay> for InstrumentXRay
impl PartialEq<InstrumentXRay> for InstrumentXRay
source§fn eq(&self, other: &InstrumentXRay) -> bool
fn eq(&self, other: &InstrumentXRay) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for InstrumentXRay
impl Eq for InstrumentXRay
impl StructuralEq for InstrumentXRay
impl StructuralPartialEq for InstrumentXRay
Auto Trait Implementations§
impl RefUnwindSafe for InstrumentXRay
impl Send for InstrumentXRay
impl Sync for InstrumentXRay
impl Unpin for InstrumentXRay
impl UnwindSafe for InstrumentXRay
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
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: 24 bytes