OmniSciDB
c1a53651b2
|
#include <CodeCacheAccessor.h>
Public Member Functions | |
CodeCacheAccessor (size_t cache_size, std::string name="") | |
CodeCacheVal< CompilationContext > | get_value (const CodeCacheKey &key) |
void | put (const CodeCacheKey &key, CodeCacheVal< CompilationContext > &value) |
CodeCacheVal < CompilationContext > * | get_or_wait (const CodeCacheKey &key) |
void | swap (const CodeCacheKey &key, CodeCacheVal< CompilationContext > &&value) |
void | clear () |
void | evictFractionEntries (const float fraction) |
Private Attributes | |
CodeCache< CompilationContext > | code_cache_ |
int64_t | get_count_ |
int64_t | found_count_ |
int64_t | put_count_ |
int64_t | ignore_count_ |
int64_t | overwrite_count_ |
int64_t | evict_count_ |
const std::string | name_ |
std::mutex | code_cache_mutex_ |
std::condition_variable | compilation_cv_ |
Friends | |
std::ostream & | operator<< (std::ostream &os, CodeCacheAccessor &c) |
Definition at line 25 of file CodeCacheAccessor.h.
|
inline |
Definition at line 27 of file CodeCacheAccessor.h.
void CodeCacheAccessor< CompilationContext >::clear | ( | ) |
Definition at line 102 of file CodeCacheAccessor.cpp.
|
inline |
Definition at line 46 of file CodeCacheAccessor.h.
References CodeCacheAccessor< CompilationContext >::code_cache_, CodeCacheAccessor< CompilationContext >::code_cache_mutex_, and CodeCacheAccessor< CompilationContext >::evict_count_.
CodeCacheVal< CompilationContext > * CodeCacheAccessor< CompilationContext >::get_or_wait | ( | const CodeCacheKey & | key | ) |
Definition at line 55 of file CodeCacheAccessor.cpp.
References CHECK.
CodeCacheVal< CompilationContext > CodeCacheAccessor< CompilationContext >::get_value | ( | const CodeCacheKey & | key | ) |
Definition at line 21 of file CodeCacheAccessor.cpp.
void CodeCacheAccessor< CompilationContext >::put | ( | const CodeCacheKey & | key, |
CodeCacheVal< CompilationContext > & | value | ||
) |
Definition at line 34 of file CodeCacheAccessor.cpp.
References LOG, and logger::WARNING.
void CodeCacheAccessor< CompilationContext >::swap | ( | const CodeCacheKey & | key, |
CodeCacheVal< CompilationContext > && | value | ||
) |
Definition at line 90 of file CodeCacheAccessor.cpp.
References CHECK, and run_benchmark_import::result.
|
friend |
Definition at line 52 of file CodeCacheAccessor.h.
|
private |
Definition at line 62 of file CodeCacheAccessor.h.
Referenced by CodeCacheAccessor< CompilationContext >::evictFractionEntries().
|
private |
Definition at line 69 of file CodeCacheAccessor.h.
Referenced by CodeCacheAccessor< CompilationContext >::evictFractionEntries().
|
private |
Definition at line 72 of file CodeCacheAccessor.h.
|
private |
Definition at line 64 of file CodeCacheAccessor.h.
Referenced by CodeCacheAccessor< CompilationContext >::evictFractionEntries().
|
private |
Definition at line 64 of file CodeCacheAccessor.h.
|
private |
Definition at line 64 of file CodeCacheAccessor.h.
|
private |
Definition at line 64 of file CodeCacheAccessor.h.
|
private |
Definition at line 67 of file CodeCacheAccessor.h.
|
private |
Definition at line 64 of file CodeCacheAccessor.h.
|
private |
Definition at line 64 of file CodeCacheAccessor.h.