THPDFQuickJS.TryGetEvalCacheStats
Unit: HPDFQuickJS
Declaration
function TryGetEvalCacheStats(out Hits, Misses, StoredEntries,
StoredBytes, MaxBytes: UInt64;
out Status: THPDFQuickJSStatus): Boolean;
Behavior
Returns True with qjsSuccess and the process-wide compiled-script cache counters on success: cache hits, misses, currently stored entries, stored source and bytecode bytes, and the configured byte cap
On failure all counters are zeroed. An unavailable engine, or a bridge without the optional statistics export, returns False with qjsUnavailable and changes nothing
The counters cover the shared source-keyed cache that EvalCached uses, reported across all engines and owners of the loaded module; they are read-only telemetry and never affect evaluation results or limits
Related APIs
Indexed compiled-script cache, THPDFQuickJS.TryCreateEvalCacheOwner and TXFAJavaScriptSession, which surfaces the same counters for session-owned engines