|
LLDB mainline
|
#include <FormatCache.h>
Classes | |
| struct | Entry |
Public Member Functions | |
| FormatCache ()=default | |
| template<typename ImplSP> | |
| bool | Get (llvm::StringRef type, ImplSP &format_impl_sp) |
| void | Set (llvm::StringRef type, lldb::TypeFormatImplSP &format_sp) |
| void | Set (llvm::StringRef type, lldb::TypeSummaryImplSP &summary_sp) |
| void | Set (llvm::StringRef type, lldb::SyntheticChildrenSP &synthetic_sp) |
| void | Clear () |
| uint64_t | GetCacheHits () |
| uint64_t | GetCacheMisses () |
Private Attributes | |
| llvm::StringMap< 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 112 of file FormatCache.cpp.
| bool FormatCache::Get | ( | llvm::StringRef | 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 FormatCache::Get< lldb::SyntheticChildrenSP >(), FormatCache::Get< lldb::TypeFormatImplSP >(), and FormatCache::Get< lldb::TypeSummaryImplSP >().
|
inline |
Definition at line 65 of file FormatCache.h.
References m_cache_hits.
|
inline |
Definition at line 67 of file FormatCache.h.
References m_cache_misses.
| void lldb_private::FormatCache::Set | ( | llvm::StringRef | type, |
| lldb::SyntheticChildrenSP & | synthetic_sp ) |
| void FormatCache::Set | ( | llvm::StringRef | type, |
| lldb::TypeFormatImplSP & | format_sp ) |
Definition at line 95 of file FormatCache.cpp.
| void lldb_private::FormatCache::Set | ( | llvm::StringRef | type, |
| lldb::TypeSummaryImplSP & | summary_sp ) |
|
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.