Doxygen
Loading...
Searching...
No Matches
CacheStatsWrapper Struct Reference
Collaboration diagram for CacheStatsWrapper:

Public Member Functions

 CacheStatsWrapper (CacheStatistics &stats, size_t capacity)
 ~CacheStatsWrapper ()
LookupCachecache ()

Private Attributes

CacheStatisticsm_statistics
Cache< std::string, LookupInfom_cache

Detailed Description

Definition at line 70 of file symbolresolver.cpp.

Constructor & Destructor Documentation

◆ CacheStatsWrapper()

CacheStatsWrapper::CacheStatsWrapper ( CacheStatistics & stats,
size_t capacity )
inline

Definition at line 73 of file symbolresolver.cpp.

73: m_statistics(stats), m_cache(capacity) {}
CacheStatistics & m_statistics
Cache< std::string, LookupInfo > m_cache

References m_cache, and m_statistics.

◆ ~CacheStatsWrapper()

CacheStatsWrapper::~CacheStatsWrapper ( )
inline

Definition at line 74 of file symbolresolver.cpp.

75 {
76 // merge the cache statistics at the end of a worker thread's life
78 }
static void mergeStatistics(CacheStatistics &stats, LookupCache &cache)

References m_cache, m_statistics, and mergeStatistics().

Member Function Documentation

◆ cache()

LookupCache & CacheStatsWrapper::cache ( )
inline

Definition at line 79 of file symbolresolver.cpp.

79{ return m_cache; }

References m_cache.

Member Data Documentation

◆ m_cache

Cache<std::string,LookupInfo> CacheStatsWrapper::m_cache
private

Definition at line 82 of file symbolresolver.cpp.

Referenced by cache(), CacheStatsWrapper(), and ~CacheStatsWrapper().

◆ m_statistics

CacheStatistics& CacheStatsWrapper::m_statistics
private

Definition at line 81 of file symbolresolver.cpp.

Referenced by CacheStatsWrapper(), and ~CacheStatsWrapper().


The documentation for this struct was generated from the following file: