Skip to navigation

Struct Diagnostic Memory Usage

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct DiagnosticMemoryUsage {Show 20 fields
    pub reserved_bytes: usize,
    pub components: usize,
    pub counters: usize,
    pub events: usize,
    pub event_slot_bytes: usize,
    pub event_capacity: usize,
    pub history_reserved_bytes: usize,
    pub history_occupied_bytes: usize,
    pub detail_bytes: usize,
    pub detail_capacity_bytes: usize,
    pub detail_reserved_bytes: usize,
    pub detail_metadata_bytes: usize,
    pub detail_logical_bytes: usize,
    pub detail_slack_bytes: usize,
    pub metadata_bytes: usize,
    pub window_buckets: usize,
    pub extensions: usize,
    pub query_workspaces: usize,
    pub projections: usize,
    pub projection_workspaces: usize,
}

Backing capacity and current occupancy of one context.

These gauges describe the bounded backend rather than whole-process RSS. Reserved bytes describe allocated capacity; occupied bytes describe its use and are not additional allocations. History and detail totals are subsets of reserved_bytes; logical detail and slack are subsets of detail_bytes. All values are zero when collection is disabled.

Fields

reserved_bytes: usize

Bytes reserved for context-owned backend backing storage.

components: usize

Occupied active or retained closed component slots.

counters: usize

Occupied lifetime code-counter slots across admitted components.

events: usize

Currently retained shared circular-history event headers.

event_slot_bytes: usize

Compiled size of one fixed event slot, excluding separately stored text.

event_capacity: usize

Event slots admitted for the shared circular history.

history_reserved_bytes: usize

Complete history allocation, including all slots, shared header, and padding.

history_occupied_bytes: usize

Retained slot bytes; excludes the shared history header and separate text pool.

detail_bytes: usize

Pool payload bytes occupied in whole reclaimable blocks.

detail_capacity_bytes: usize

Actual payload capacity, rounded down to whole detail blocks.

detail_reserved_bytes: usize

Complete detail-pool backing: payload capacity plus all block metadata.

detail_metadata_bytes: usize

Reserved metadata bytes for all detail blocks, occupied or free.

detail_logical_bytes: usize

Retained UTF-8 message and correlation bytes, excluding block slack.

detail_slack_bytes: usize

Unused payload bytes inside occupied blocks; excludes entirely free blocks.

metadata_bytes: usize

Admitted key, ownership, and extension metadata content bytes.

window_buckets: usize

Reserved rolling outcome-bucket slots belonging to components.

extensions: usize

Admitted extension descriptors, including retained closed components.

query_workspaces: usize

Query leases currently holding preallocated materialization buffers.

projections: usize

Optional projection subscriptions currently admitted.

projection_workspaces: usize

Projection workspaces currently materializing or delivering evidence.

Trait Implementations

impl Clone for DiagnosticMemoryUsage

impl Clone for DiagnosticMemoryUsage

clone

fn clone(&self) -> DiagnosticMemoryUsage

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for DiagnosticMemoryUsage

impl Debug for DiagnosticMemoryUsage

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for DiagnosticMemoryUsage

impl Default for DiagnosticMemoryUsage

default

fn default() -> DiagnosticMemoryUsage

impl Serialize for DiagnosticMemoryUsage

impl Serialize for DiagnosticMemoryUsage

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl Copy for DiagnosticMemoryUsage

impl Copy for DiagnosticMemoryUsage