Struct ispc::SimpleInstrument
source · [−]pub struct SimpleInstrument;
Expand description
A simple ISPC instrumenter which will print the information passed to it out.
Trait Implementations
sourceimpl Instrument for SimpleInstrument
impl Instrument for SimpleInstrument
sourcefn instrument(
&self,
file: &CStr,
note: &CStr,
line: i32,
mask: u64,
active_count: u32
)
fn instrument(
&self,
file: &CStr,
note: &CStr,
line: i32,
mask: u64,
active_count: u32
)
instrument is called when ISPC calls the ISPCInstrument
callback. The file
and note strings are converted CStr
and the number of active programs is
computed from the mask. Read more
sourcefn print_summary(&self)
fn print_summary(&self)
Called through ispc::print_instrumenting_summary
, optionally log out a summary
of performance information gathered through the instrument
callback. Read more
Auto Trait Implementations
impl RefUnwindSafe for SimpleInstrument
impl Send for SimpleInstrument
impl Sync for SimpleInstrument
impl Unpin for SimpleInstrument
impl UnwindSafe for SimpleInstrument
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more