pub struct ServerStats {
Show 21 fields pub compile_requests: u64, pub requests_unsupported_compiler: u64, pub requests_not_compile: u64, pub requests_not_cacheable: u64, pub requests_executed: u64, pub cache_errors: PerLanguageCount, pub cache_hits: PerLanguageCount, pub cache_misses: PerLanguageCount, pub cache_timeouts: u64, pub cache_read_errors: u64, pub non_cacheable_compilations: u64, pub forced_recaches: u64, pub cache_write_errors: u64, pub cache_writes: u64, pub cache_write_duration: Duration, pub cache_read_hit_duration: Duration, pub cache_read_miss_duration: Duration, pub compile_fails: u64, pub not_cached: HashMap<String, usize>, pub dist_compiles: HashMap<String, usize>, pub dist_errors: u64,
}
Expand description

Statistics about the server.

Fields

compile_requests: u64

The count of client compile requests.

requests_unsupported_compiler: u64

The count of client requests that used an unsupported compiler.

requests_not_compile: u64

The count of client requests that were not compilation.

requests_not_cacheable: u64

The count of client requests that were not cacheable.

requests_executed: u64

The count of client requests that were executed.

cache_errors: PerLanguageCount

The count of errors handling compile requests (per language).

cache_hits: PerLanguageCount

The count of cache hits for handled compile requests (per language).

cache_misses: PerLanguageCount

The count of cache misses for handled compile requests (per language).

cache_timeouts: u64

The count of cache misses because the cache took too long to respond.

cache_read_errors: u64

The count of errors reading cache entries.

non_cacheable_compilations: u64

The count of compilations which were successful but couldn’t be cached.

forced_recaches: u64

The count of compilations which forcibly ignored the cache.

cache_write_errors: u64

The count of errors writing to cache.

cache_writes: u64

The number of successful cache writes.

cache_write_duration: Duration

The total time spent writing cache entries.

cache_read_hit_duration: Duration

The total time spent reading cache hits.

cache_read_miss_duration: Duration

The total time spent reading cache misses.

compile_fails: u64

The count of compilation failures.

not_cached: HashMap<String, usize>

Counts of reasons why compiles were not cached.

dist_compiles: HashMap<String, usize>

The count of compilations that were successfully distributed indexed by the server that ran those compilations.

dist_errors: u64

The count of compilations that were distributed but failed and had to be re-run locally

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

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

Calls U::from(self).

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

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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