LLDB mainline
|
#include <FormatCache.h>
Classes | |
struct | Entry |
Public Member Functions | |
FormatCache ()=default | |
template<typename ImplSP > | |
bool | Get (ConstString type, ImplSP &format_impl_sp) |
void | Set (ConstString type, lldb::TypeFormatImplSP &format_sp) |
void | Set (ConstString type, lldb::TypeSummaryImplSP &summary_sp) |
void | Set (ConstString type, lldb::SyntheticChildrenSP &synthetic_sp) |
void | Clear () |
uint64_t | GetCacheHits () |
uint64_t | GetCacheMisses () |
Private Types | |
typedef std::map< ConstString, Entry > | CacheMap |
Private Member Functions | |
Entry & | GetEntry (ConstString type) |
Private Attributes | |
CacheMap | m_map |
std::recursive_mutex | m_mutex |
uint64_t | m_cache_hits = 0 |
uint64_t | m_cache_misses = 0 |
Definition at line 20 of file FormatCache.h.
|
private |
Definition at line 48 of file FormatCache.h.
|
default |
void FormatCache::Clear | ( | ) |
Definition at line 118 of file FormatCache.cpp.
References m_map, and m_mutex.
Referenced by lldb_private::FormatManager::Changed().
bool FormatCache::Get | ( | ConstString | type, |
ImplSP & | format_impl_sp | ||
) |
Definition at line 77 of file FormatCache.cpp.
References GetEntry(), m_cache_hits, m_cache_misses, and m_mutex.
Referenced by lldb_private::LanguageCategory::Get(), and lldb_private::FormatManager::GetCached().
|
inline |
Definition at line 67 of file FormatCache.h.
References m_cache_hits.
Referenced by lldb_private::FormatManager::GetCached().
|
inline |
Definition at line 69 of file FormatCache.h.
References m_cache_misses.
Referenced by lldb_private::FormatManager::GetCached().
|
private |
void FormatCache::Set | ( | ConstString | type, |
lldb::SyntheticChildrenSP & | synthetic_sp | ||
) |
Definition at line 112 of file FormatCache.cpp.
References GetEntry(), m_mutex, and lldb_private::FormatCache::Entry::Set().
void FormatCache::Set | ( | ConstString | type, |
lldb::TypeFormatImplSP & | format_sp | ||
) |
Definition at line 102 of file FormatCache.cpp.
References GetEntry(), m_mutex, and lldb_private::FormatCache::Entry::Set().
Referenced by lldb_private::LanguageCategory::Get(), and lldb_private::FormatManager::GetCached().
void FormatCache::Set | ( | ConstString | type, |
lldb::TypeSummaryImplSP & | summary_sp | ||
) |
Definition at line 107 of file FormatCache.cpp.
References GetEntry(), m_mutex, and lldb_private::FormatCache::Entry::Set().
|
private |
Definition at line 52 of file FormatCache.h.
Referenced by Get(), and GetCacheHits().
|
private |
Definition at line 53 of file FormatCache.h.
Referenced by Get(), and GetCacheMisses().
|
private |
Definition at line 49 of file FormatCache.h.
Referenced by Clear(), and GetEntry().
|
private |
Definition at line 50 of file FormatCache.h.