Struct ittapi::jit::Jit

source · []
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

Returns a new MethodId for use in MethodLoad events.

Notifies any EventType to VTune.

Errors

May fail if the underlying call to the ITT library fails.

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.

Notifies VTune that profiling is being shut down.

Errors

May fail if the ITT library fails to notify the shutdown event.

Trait Implementations

Returns the “default value” for a type. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.