pub struct TraceJitConfig {
pub trace_threshold: u32,
pub max_side_exits: u32,
pub max_inline_recursion: usize,
pub max_trace_chain: usize,
pub max_trace_len: usize,
}Expand description
Tunable thresholds for the tracing JIT.
All hot/threshold/cap values are surfaced here so callers can adjust the JIT for their workload without recompiling fusevm. Defaults match the constants used through phase 9; aggressive workloads (very hot short loops) might want lower thresholds, while cold-start workloads (script that runs once) might want higher thresholds to avoid spending compile time on traces that won’t pay off.
Apply via JitCompiler::set_config(...) — affects subsequent calls
from the current thread.
Fields§
§trace_threshold: u32Backedges through a loop header before recording arms.
max_side_exits: u32Mid-trace side-exits before the trace is auto-blacklisted.
max_inline_recursion: usizeMaximum self-recursive levels the recorder will inline.
max_trace_chain: usizeMaximum chained side traces dispatched per backward-branch hop.
max_trace_len: usizeMaximum recorded ops in a single trace before recording aborts.
Implementations§
Trait Implementations§
Source§impl Clone for TraceJitConfig
impl Clone for TraceJitConfig
Source§fn clone(&self) -> TraceJitConfig
fn clone(&self) -> TraceJitConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more