pub struct HotPathDetector { /* private fields */ }Expand description
Hot path detector that identifies frequently executed code paths.
Implementations§
Source§impl HotPathDetector
impl HotPathDetector
Sourcepub fn detect_hot_paths(&self, cache: &JitCache) -> Vec<JitKey>
pub fn detect_hot_paths(&self, cache: &JitCache) -> Vec<JitKey>
Detect hot paths from cache statistics.
Sourcepub fn recommend_recompilation(
&self,
cache: &JitCache,
) -> Vec<(JitKey, OptimizationLevel)>
pub fn recommend_recompilation( &self, cache: &JitCache, ) -> Vec<(JitKey, OptimizationLevel)>
Recommend recompilation for hot paths.
Sourcepub fn recommend_deoptimization(&self, cache: &JitCache) -> Vec<JitKey>
pub fn recommend_deoptimization(&self, cache: &JitCache) -> Vec<JitKey>
Recommend deoptimization for cold paths.
Auto Trait Implementations§
impl Freeze for HotPathDetector
impl RefUnwindSafe for HotPathDetector
impl Send for HotPathDetector
impl Sync for HotPathDetector
impl Unpin for HotPathDetector
impl UnsafeUnpin for HotPathDetector
impl UnwindSafe for HotPathDetector
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