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 Attributes | |
std::map< ConstString, Entry > | m_entries |
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.
|
default |
void FormatCache::Clear | ( | ) |
Definition at line 110 of file FormatCache.cpp.
References m_entries, and m_mutex.
Referenced by lldb_private::FormatManager::Changed().
bool FormatCache::Get | ( | ConstString | type, |
ImplSP & | format_impl_sp | ||
) |
Definition at line 69 of file FormatCache.cpp.
References m_cache_hits, m_cache_misses, m_entries, and m_mutex.
Referenced by lldb_private::LanguageCategory::Get(), and lldb_private::FormatManager::GetCached().
|
inline |
Definition at line 64 of file FormatCache.h.
References m_cache_hits.
Referenced by lldb_private::FormatManager::GetCached().
|
inline |
Definition at line 66 of file FormatCache.h.
References m_cache_misses.
Referenced by lldb_private::FormatManager::GetCached().
void FormatCache::Set | ( | ConstString | type, |
lldb::SyntheticChildrenSP & | synthetic_sp | ||
) |
Definition at line 104 of file FormatCache.cpp.
void FormatCache::Set | ( | ConstString | type, |
lldb::TypeFormatImplSP & | format_sp | ||
) |
Definition at line 94 of file FormatCache.cpp.
References m_entries, and m_mutex.
Referenced by lldb_private::LanguageCategory::Get(), and lldb_private::FormatManager::GetCached().
void FormatCache::Set | ( | ConstString | type, |
lldb::TypeSummaryImplSP & | summary_sp | ||
) |
Definition at line 99 of file FormatCache.cpp.
|
private |
Definition at line 51 of file FormatCache.h.
Referenced by Get(), and GetCacheHits().
|
private |
Definition at line 52 of file FormatCache.h.
Referenced by Get(), and GetCacheMisses().
|
private |
Definition at line 48 of file FormatCache.h.
|
private |
Definition at line 49 of file FormatCache.h.