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 Freeze for SimpleInstrument
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more