Struct ispc::instrument::SimpleInstrument
source · pub struct SimpleInstrument;
Expand description
A simple ISPC instrumenter which will print the information passed to it out.
Trait Implementations§
source§impl Instrument for SimpleInstrument
impl Instrument for SimpleInstrument
source§fn 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.source§fn 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.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§
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