pub struct SessionStats {
pub duration_ms: u64,
pub compilations: u64,
pub hits: u64,
pub misses: u64,
pub non_cacheable: u64,
pub errors: u64,
pub time_saved_ms: u64,
pub unique_sources: u64,
pub bytes_read: u64,
pub bytes_written: u64,
}Expand description
Per-session statistics, returned when the session opted in to tracking.
Fields§
§duration_ms: u64Wall-clock duration of the session in milliseconds.
compilations: u64Total compile requests in this session.
hits: u64Cache hits in this session.
misses: u64Cache misses (cold compiles) in this session.
non_cacheable: u64Non-cacheable invocations (linking, preprocessing, etc.).
errors: u64Compilations that exited with non-zero status.
time_saved_ms: u64Estimated wall-clock time saved in milliseconds.
unique_sources: u64Distinct source files compiled.
bytes_read: u64Total artifact bytes served from cache.
bytes_written: u64Total artifact bytes stored into cache.
Trait Implementations§
Source§impl Clone for SessionStats
impl Clone for SessionStats
Source§fn clone(&self) -> SessionStats
fn clone(&self) -> SessionStats
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 moreSource§impl Debug for SessionStats
impl Debug for SessionStats
Source§impl<'de> Deserialize<'de> for SessionStats
impl<'de> Deserialize<'de> for SessionStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SessionStats
impl PartialEq for SessionStats
Source§impl Serialize for SessionStats
impl Serialize for SessionStats
impl StructuralPartialEq for SessionStats
Auto Trait Implementations§
impl Freeze for SessionStats
impl RefUnwindSafe for SessionStats
impl Send for SessionStats
impl Sync for SessionStats
impl Unpin for SessionStats
impl UnsafeUnpin for SessionStats
impl UnwindSafe for SessionStats
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