Skip to main content

PrewarmStats

Struct PrewarmStats 

Source
pub(super) struct PrewarmStats {
    pub warmed: usize,
    pub total_compile_ms: u64,
    pub total_fsync_ms: u64,
    pub fully_cached: bool,
    pub skipped: usize,
    pub fresh_compiles: usize,
    pub engine_count_delta: i64,
    pub engine_count_before: usize,
    pub engine_count_after: usize,
    pub max_warmed_seq: usize,
}
Expand description

Aggregate per-worker statistics returned by trt_prewarm.

total_compile_ms and total_fsync_ms sum across only the shapes that completed successfully on this worker’s shard, whether they were cache hits or fresh compiles. They are intended for the "TensorRT pre-warm complete" summary log emitted by the worker.

Fields§

§warmed: usize§total_compile_ms: u64§total_fsync_ms: u64§fully_cached: bool

true when the dimensional-extreme coverage check determined the entire shard was already cached and the remaining shapes were skipped. false on cold cache, on a fresh compile, or when the check phase detected at least one slow (≥ CACHE_HIT_THRESHOLD_MS) shape.

§skipped: usize

Number of shapes in the shard that were skipped because fully_cached was determined to be true. Zero on cold cache or when all shapes were run.

§fresh_compiles: usize

Number of shapes that reported a fresh compile (!cache_hit and Ok(_) from session.run()). Used together with engine_count_delta by the worker to decide whether the on-disk artifacts match what the per-shape logs claimed.

§engine_count_delta: i64

Net .engine file count change across this worker’s prewarm sweep (count_after_last_shape - count_before_first_shape). SM-filtered: reflects only plans matching the worker’s GPU compute capability, so a stale _sm89.engine next to a fresh _sm120.engine does not silently zero out the delta on a Blackwell worker. Compared against fresh_compiles to detect compile-success-without-persistence.

§engine_count_before: usize

.engine file count observed in engine_cache_dir before the worker ran any of its shard’s shapes. SM-filtered: counts only plans matching the worker’s GPU compute capability (see the sm parameter on trt_prewarm). When SM detection failed and sm == None, falls back to the legacy unfiltered count.

§engine_count_after: usize

.engine file count observed in engine_cache_dir after the worker finished its shard (post final fsync). SM-filtered with the same semantics as engine_count_before.

§max_warmed_seq: usize

Largest sequence length among the shapes this worker successfully warmed (fresh compile or warm-cache hit). Zero when no shape succeeded (e.g. every compile failed, the worker-3 seq=8192 failure mode). Folded into the pool-wide warmed_seq_ceiling atomic by the worker so super::jit_guard::TrtJitGuard knows the highest sequence tier with a persisted engine plan. See worker.rs.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more