pub trait Instrument {
// Required method
fn instrument(
&self,
file: &CStr,
note: &CStr,
line: i32,
mask: u64,
active_count: u32,
);
// Provided method
fn print_summary(&self) { ... }
}Expand description
Trait to be implemented to provide ISPC instrumentation functionality.
The runtime required function is wrapped and forwarded to your struct.
Required Methods§
Provided Methods§
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.