PdfCacheStatistics(Int64, Int64, Int64, Int32, Int64, Int64, Int64) Constructor

Definition

Namespace Broadside
Assembly Broadside.dll

The counters of one of a document's render caches at one moment (CacheStatistics).

public PdfCacheStatistics(long Budget, long Bytes, long PeakBytes, int Count, long Hits, long Misses, long Evictions)

Parameters

Budget
Int64

The most bytes the cache holds, from PdfOptions; zero when the cache is off.

Bytes
Int64

The bytes the cache holds now.

PeakBytes
Int64

The most bytes the cache has held at once since the document was opened; never more than Budget.

Count
Int32

The entries the cache holds now.

Hits
Int64

The lookups that found a current entry.

Misses
Int64

The lookups that found none, or one made stale by a change to the document, and so built the value afresh.

Evictions
Int64

The entries dropped, least recently used first, to keep an addition within the budget.

Remarks

Spec #33 viewer capability 13 and story 8. Bytes are charged from the sizes of what an entry holds (sample buffers, path points, decoded content, operation tables), so they are the same on every run and every machine. An entry larger than the whole budget is used but never stored.