pub struct WgpuBackendStats {
pub adapter_name: Arc<str>,
pub pipeline_cache_entries: usize,
pub pipeline_cache_capacity: usize,
pub pipeline_cache_bytes: usize,
pub pipeline_cache_byte_capacity: usize,
pub pipeline_cache_hits: u64,
pub pipeline_cache_misses: u64,
pub pipeline_cache_insertions: u64,
pub pipeline_cache_evictions: u64,
pub pipeline_cache_hit_rate: f64,
pub persistent_pool: BufferPoolStats,
}Expand description
Runtime observability snapshot for a crate::WgpuBackend.
Feed into metrics pipelines (prometheus, OpenTelemetry, Datadog) for dashboards and alerting. Reads are lock-free; safe to call from a hot scrape loop.
Fields§
§adapter_name: Arc<str>Adapter name the backend is bound to (e.g. "NVIDIA GeForce RTX 5090").
pipeline_cache_entries: usizeLive entries in the pipeline cache.
pipeline_cache_capacity: usizeSoft cap before eviction triggers.
pipeline_cache_bytes: usizeEstimated bytes retained by the pipeline cache.
pipeline_cache_byte_capacity: usizeEstimated byte cap before eviction triggers.
pipeline_cache_hits: u64Pipeline-cache lookup hits since backend construction.
pipeline_cache_misses: u64Pipeline-cache lookup misses since backend construction.
pipeline_cache_insertions: u64Pipeline-cache insertions since backend construction.
pipeline_cache_evictions: u64Capacity-driven pipeline-cache evictions since backend construction.
pipeline_cache_hit_rate: f64Hit ratio over all pipeline-cache lookups.
persistent_pool: BufferPoolStatsPersistent buffer pool counters (allocations, hits, releases, evictions).
Trait Implementations§
Source§impl Clone for WgpuBackendStats
impl Clone for WgpuBackendStats
Source§fn clone(&self) -> WgpuBackendStats
fn clone(&self) -> WgpuBackendStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more