Table of Contents

Struct TileCacheStats

Snapshot of disk-cache occupancy and hit counters for inspectors and telemetry.

public readonly struct TileCacheStats
Inherited Members

Constructors

TileCacheStats(long, long, int, long, long, long)

Builds a snapshot from the store's live counters.

public TileCacheStats(long liveBytes, long maxDataBytes, int entryCount, long hitCount, long missCount, long evictionCount)

Parameters

liveBytes long

Bytes reachable through the index, excluding orphans.

maxDataBytes long

Live-data cap in bytes.

entryCount int

Number of live index entries.

hitCount long

Successful reads since the store opened.

missCount long

Failed reads since the store opened.

evictionCount long

Runtime evictions since the store opened.

Properties

EntryCount

Number of live index entries.

public int EntryCount { get; }

Property Value

int

EvictionCount

Runtime evictions since the store opened, including later cap shrinks; the open-time cap replay is omitted.

public long EvictionCount { get; }

Property Value

long

HitCount

Successful TryRead(ulong, out byte[], out int) calls since the store opened.

public long HitCount { get; }

Property Value

long

HitRate

Hits divided by hits plus misses; 0 when no lookups have run.

public double HitRate { get; }

Property Value

double

LiveBytes

Bytes reachable through the index, excluding orphans.

public long LiveBytes { get; }

Property Value

long

MaxDataBytes

Live-data cap in bytes at the time of the snapshot.

public long MaxDataBytes { get; }

Property Value

long

MissCount

Failed TryRead(ulong, out byte[], out int) calls since the store opened.

public long MissCount { get; }

Property Value

long