VLink  2.0.0
A high-performance communication middleware
vlink::MemoryPool::TierStats Struct Referencefinal

Per-tier runtime statistics snapshot. More...

#include <memory_pool.h>

Collaboration diagram for vlink::MemoryPool::TierStats:

Public Attributes

size_t max_size {0}
 Configured max_size for this tier. More...
 
size_t blocks_per_chunk {0}
 Configured blocks_per_chunk for this tier. More...
 
size_t block_size {0}
 Effective block size after alignment rounding. More...
 
uint64_t hit_count {0}
 Allocations dispatched to this tier (resettable). More...
 
uint64_t deallocate_count {0}
 Deallocations dispatched to this tier (resettable). More...
 
uint64_t in_use_blocks {0}
 Best-effort hit_count - deallocate_count. More...
 
uint64_t chunk_count {0}
 Currently owned chunks; clear decrements by released count. More...
 
uint64_t upstream_alloc_count {0}
 Lifetime number of chunks fully installed in this tier. More...
 
uint64_t upstream_alloc_bytes {0}
 Lifetime bytes of those installed chunks. More...
 

Detailed Description

Per-tier runtime statistics snapshot.

Counters use relaxed atomics; in_use_blocks and the lifetime upstream fields are best effort under concurrent traffic, not globally atomic.

Member Data Documentation

◆ block_size

size_t vlink::MemoryPool::TierStats::block_size {0}

Effective block size after alignment rounding.

◆ blocks_per_chunk

size_t vlink::MemoryPool::TierStats::blocks_per_chunk {0}

Configured blocks_per_chunk for this tier.

◆ chunk_count

uint64_t vlink::MemoryPool::TierStats::chunk_count {0}

Currently owned chunks; clear decrements by released count.

◆ deallocate_count

uint64_t vlink::MemoryPool::TierStats::deallocate_count {0}

Deallocations dispatched to this tier (resettable).

◆ hit_count

uint64_t vlink::MemoryPool::TierStats::hit_count {0}

Allocations dispatched to this tier (resettable).

◆ in_use_blocks

uint64_t vlink::MemoryPool::TierStats::in_use_blocks {0}

Best-effort hit_count - deallocate_count.

◆ max_size

size_t vlink::MemoryPool::TierStats::max_size {0}

Configured max_size for this tier.

◆ upstream_alloc_bytes

uint64_t vlink::MemoryPool::TierStats::upstream_alloc_bytes {0}

Lifetime bytes of those installed chunks.

◆ upstream_alloc_count

uint64_t vlink::MemoryPool::TierStats::upstream_alloc_count {0}

Lifetime number of chunks fully installed in this tier.


The documentation for this struct was generated from the following file: