Struct PrefetcherDiagnostics
Immutable diagnostic snapshot of the asset prefetcher's current state.
Provides comprehensive information about cache usage, queue status, and system limits.
Inherited Members
Namespace: Serenity.AssetPrefetcher.Domain.ValueObjects
Assembly: Serenity.AssetPrefetcher.Domain.dll
Syntax
public readonly struct PrefetcherDiagnostics
Constructors
PrefetcherDiagnostics(int, int, long, int, int, int, int, int)
Initializes a new diagnostics snapshot with the specified values.
Declaration
public PrefetcherDiagnostics(int cacheItems, int cacheBytes, long budgetBytes, int inflight, int maxConcurrent, int queueHigh, int queueNormal, int queueLow)
Parameters
| Type | Name | Description |
|---|---|---|
| int | cacheItems | Current number of cached items |
| int | cacheBytes | Current cache size in bytes |
| long | budgetBytes | Maximum cache budget in bytes |
| int | inflight | Number of in-flight loading operations |
| int | maxConcurrent | Maximum concurrent operations allowed |
| int | queueHigh | High-priority queue size |
| int | queueNormal | Normal-priority queue size |
| int | queueLow | Low-priority queue size |
Fields
BudgetBytes
Declaration
public readonly long BudgetBytes
Field Value
| Type | Description |
|---|---|
| long | Maximum allowed cache size in bytes (budget limit). |
CacheBytes
Declaration
public readonly int CacheBytes
Field Value
| Type | Description |
|---|---|
| int | Current total size of cached items in bytes. |
CacheItems
Declaration
public readonly int CacheItems
Field Value
| Type | Description |
|---|---|
| int | Current number of items stored in the cache. |
Inflight
Declaration
public readonly int Inflight
Field Value
| Type | Description |
|---|---|
| int | Number of assets currently being loaded (in-flight operations). |
MaxConcurrent
Declaration
public readonly int MaxConcurrent
Field Value
| Type | Description |
|---|---|
| int | Maximum number of concurrent loading operations allowed. |
QueueHigh
Declaration
public readonly int QueueHigh
Field Value
| Type | Description |
|---|---|
| int | Number of high-priority requests in the queue. |
QueueLow
Declaration
public readonly int QueueLow
Field Value
| Type | Description |
|---|---|
| int | Number of low-priority requests in the queue. |
QueueNormal
Declaration
public readonly int QueueNormal
Field Value
| Type | Description |
|---|---|
| int | Number of normal-priority requests in the queue. |