pub(crate) struct TrtCacheInfo {
pub path: PathBuf,
pub engine_count: usize,
pub profile_count: usize,
}Expand description
Summary of the TRT engine cache state, produced at startup so the operator
can see in CloudWatch whether the persistent volume is actually being
reused between container restarts.
Fields§
§path: PathBufAbsolute cache directory path (stable; no per-container ephemera).
engine_count: usizeNumber of .engine files found in the cache directory before this
container started doing any work. Zero means a cold cache.
profile_count: usizeNumber of .profile files (TRT input-shape profiles emitted alongside
each .engine). Reported for diagnostic completeness; the count is
expected to be engine_count once warmup completes.
Trait Implementations§
Source§impl Clone for TrtCacheInfo
impl Clone for TrtCacheInfo
Source§fn clone(&self) -> TrtCacheInfo
fn clone(&self) -> TrtCacheInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TrtCacheInfo
impl RefUnwindSafe for TrtCacheInfo
impl Send for TrtCacheInfo
impl Sync for TrtCacheInfo
impl Unpin for TrtCacheInfo
impl UnsafeUnpin for TrtCacheInfo
impl UnwindSafe for TrtCacheInfo
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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