pub struct JitState {
pub profiler: Profiler,
pub traces: HashMap<TraceId, CompiledTrace>,
pub root_traces: HashMap<(usize, usize), TraceId>,
pub enabled: bool,
/* private fields */
}Fields§
§profiler: Profiler§traces: HashMap<TraceId, CompiledTrace>§root_traces: HashMap<(usize, usize), TraceId>§enabled: boolImplementations§
Source§impl JitState
impl JitState
pub fn new() -> Self
pub fn alloc_trace_id(&mut self) -> TraceId
pub fn check_hot(&mut self, func_idx: usize, ip: usize) -> bool
pub fn get_root_trace( &self, func_idx: usize, ip: usize, ) -> Option<&CompiledTrace>
pub fn get_trace(&self, id: TraceId) -> Option<&CompiledTrace>
pub fn get_trace_mut(&mut self, id: TraceId) -> Option<&mut CompiledTrace>
pub fn store_root_trace( &mut self, func_idx: usize, ip: usize, trace: CompiledTrace, )
pub fn store_side_trace(&mut self, trace: CompiledTrace)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JitState
impl !RefUnwindSafe for JitState
impl !Send for JitState
impl !Sync for JitState
impl Unpin for JitState
impl UnsafeUnpin for JitState
impl !UnwindSafe for JitState
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