A cache of roughly capacity entries, backed by a folly::GenerationalCacheMap: lookups are lock‐free, and an address that stops appearing in stack traces is eventually evicted in favour of one that does.
Synopsis
Declared in <folly/debugging/symbolizer/SymbolCache.h>
std::unique_ptr<SymbolCacheBase>
makeGenerationalSymbolCache(size_t capacity);
Description
Prefer this to the LRU flavour wherever traces are symbolized often enough for lookups to contend.
Return Value
A generational symbol cache.
Parameters
Name |
Description |
capacity |
The approximate number of entries to retain. |
Created with MrDocs