Table of Contents

Class PortrayalCacheMetrics

Namespace
EncDotNet.S100.Portrayals.Diagnostics
Assembly
EncDotNet.S100.Portrayals.dll

Helper for recording portrayal-cache hit/miss events with consistent dimensions. Marked public so dataset catalogues in sibling assemblies (S-101, S-131, S-111) can emit through it without forking the dimension list.

public static class PortrayalCacheMetrics
Inheritance
PortrayalCacheMetrics
Inherited Members

Methods

RecordHit(string?, string)

Records a cache hit for the given product + asset kind.

public static void RecordHit(string? product, string assetKind)

Parameters

product string
assetKind string

RecordLuaSourceHit(string?)

Records a dedicated Lua-source cache hit (EncDotNet.S100.Portrayals.Diagnostics.Telemetry.LuaSourceCacheHit) alongside the portrayal counter with kind = lua_source.

public static void RecordLuaSourceHit(string? product)

Parameters

product string

RecordLuaSourceMiss(string?)

Records a dedicated Lua-source cache miss (EncDotNet.S100.Portrayals.Diagnostics.Telemetry.LuaSourceCacheMiss) alongside the portrayal counter with kind = lua_source.

public static void RecordLuaSourceMiss(string? product)

Parameters

product string

RecordMiss(string?, string)

Records a cache miss for the given product + asset kind.

public static void RecordMiss(string? product, string assetKind)

Parameters

product string
assetKind string