pub struct CounterSnapshot {Show 14 fields
pub repository_scans: u64,
pub index_builds: u64,
pub registry_builds: u64,
pub schema_generations: u64,
pub mcp_projection_builds: u64,
pub openapi_builds: u64,
pub http_projection_builds: u64,
pub graph_builds: u64,
pub executions: u64,
pub handler_invocations: u64,
pub cache_hits: u64,
pub cache_misses: u64,
pub cache_evictions: u64,
pub phases: BTreeMap<String, PhaseTotals>,
}Expand description
The counters and phase totals of this process at one moment. Every value is a count or a duration this process measured; none is written anywhere by hand.
Fields§
§repository_scans: u64Enumerations of the repository’s declared sources.
index_builds: u64Index builds.
registry_builds: u64Registry builds.
schema_generations: u64JSON Schemas derived from Rust types.
mcp_projection_builds: u64MCP tool and resource listings computed.
openapi_builds: u64OpenAPI documents built.
http_projection_builds: u64HTTP routers built.
graph_builds: u64Graphs derived from the registry and the index.
executions: u64Calls through the executor, every transport.
handler_invocations: u64Handlers actually run.
cache_hits: u64Executions answered from the cache.
cache_misses: u64Executions of a cached capability that ran the handler.
cache_evictions: u64Cache entries dropped.
phases: BTreeMap<String, PhaseTotals>Phase totals by phase name.
Implementations§
Source§impl CounterSnapshot
impl CounterSnapshot
Sourcepub fn startup_work(&self) -> [(&'static str, u64); 7]
pub fn startup_work(&self) -> [(&'static str, u64); 7]
The counters that must not move once a process serves: a request that moves one of them rebuilt canonical state.
Trait Implementations§
Source§impl Clone for CounterSnapshot
impl Clone for CounterSnapshot
Source§fn clone(&self) -> CounterSnapshot
fn clone(&self) -> CounterSnapshot
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 CounterSnapshot
impl Debug for CounterSnapshot
Source§impl<'de> Deserialize<'de> for CounterSnapshot
impl<'de> Deserialize<'de> for CounterSnapshot
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
impl Eq for CounterSnapshot
Source§impl JsonSchema for CounterSnapshot
impl JsonSchema for CounterSnapshot
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CounterSnapshot
impl PartialEq for CounterSnapshot
Source§fn eq(&self, other: &CounterSnapshot) -> bool
fn eq(&self, other: &CounterSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CounterSnapshot
impl Serialize for CounterSnapshot
impl StructuralPartialEq for CounterSnapshot
Auto Trait Implementations§
impl Freeze for CounterSnapshot
impl RefUnwindSafe for CounterSnapshot
impl Send for CounterSnapshot
impl Sync for CounterSnapshot
impl Unpin for CounterSnapshot
impl UnsafeUnpin for CounterSnapshot
impl UnwindSafe for CounterSnapshot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.