pub struct Jit { /* private fields */ }
Expand description
Register JIT-compiled methods with a performance tool (e.g., VTune). This structure assumes single-threaded access; if your program may be multi-threaded, make sure to guard multi-threaded access with a mutex.
Implementations
sourceimpl Jit
impl Jit
sourcepub fn get_method_id(&self) -> MethodId
pub fn get_method_id(&self) -> MethodId
Returns a new MethodId
for use in MethodLoad
events.
sourcepub fn notify_event(&self, event: EventType) -> Result<()>
pub fn notify_event(&self, event: EventType) -> Result<()>
sourcepub fn load_method(&self, builder: MethodLoadBuilder) -> Result<()>
pub fn load_method(&self, builder: MethodLoadBuilder) -> Result<()>
Notifies VTune that a new function described by the MethodLoadBuilder
has been jitted.
Errors
May fail if the builder has invalid data or if the ITT library fails to notify the method load event.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Jit
impl Send for Jit
impl Sync for Jit
impl Unpin for Jit
impl UnwindSafe for Jit
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