pub struct LlamaTimings {
pub timings: llama_perf_context_data,
}Fields§
§timings: llama_perf_context_dataImplementations§
Source§impl LlamaTimings
impl LlamaTimings
pub const fn new( t_start_ms: f64, t_load_ms: f64, t_p_eval_ms: f64, t_eval_ms: f64, n_p_eval: i32, n_eval: i32, n_reused: i32, ) -> Self
pub const fn t_start_ms(&self) -> f64
pub const fn t_load_ms(&self) -> f64
pub const fn t_p_eval_ms(&self) -> f64
pub const fn t_eval_ms(&self) -> f64
pub const fn n_p_eval(&self) -> i32
pub const fn n_eval(&self) -> i32
pub const fn set_t_start_ms(&mut self, t_start_ms: f64)
pub const fn set_t_load_ms(&mut self, t_load_ms: f64)
pub const fn set_t_p_eval_ms(&mut self, t_p_eval_ms: f64)
pub const fn set_t_eval_ms(&mut self, t_eval_ms: f64)
pub const fn set_n_p_eval(&mut self, n_p_eval: i32)
pub const fn set_n_eval(&mut self, n_eval: i32)
Trait Implementations§
Source§impl Clone for LlamaTimings
impl Clone for LlamaTimings
Source§fn clone(&self) -> LlamaTimings
fn clone(&self) -> LlamaTimings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LlamaTimings
impl Debug for LlamaTimings
Source§impl Display for LlamaTimings
impl Display for LlamaTimings
impl Copy for LlamaTimings
Auto Trait Implementations§
impl Freeze for LlamaTimings
impl RefUnwindSafe for LlamaTimings
impl Send for LlamaTimings
impl Sync for LlamaTimings
impl Unpin for LlamaTimings
impl UnsafeUnpin for LlamaTimings
impl UnwindSafe for LlamaTimings
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,
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