Home
last modified time | relevance | path

Searched refs:LRUCache (Results 1 – 3 of 3) sorted by relevance

/system/extras/simpleperf/
DCallChainJoiner_test.cpp26 static bool JoinCallChain(LRUCache& cache, uint32_t tid, in JoinCallChain()
37 TEST(LRUCache, different_nodes) { in TEST() argument
38 LRUCache cache(sizeof(CacheNode) * 2, 1); in TEST()
69 TEST(LRUCache, extend_chains) { in TEST() argument
73 LRUCache cache1(sizeof(CacheNode) * 4, 1); in TEST()
81 LRUCache cache2(sizeof(CacheNode) * 4, 2); in TEST()
89 LRUCache cache3(sizeof(CacheNode) * 4, 2); in TEST()
97 TEST(LRUCache, avoid_ip_sp_loop) { in TEST() argument
98 LRUCache cache(sizeof(CacheNode) * 2, 1); in TEST()
108 TEST(LRUCache, one_chain) { in TEST() argument
[all …]
DCallChainJoiner.cpp27 LRUCache::LRUCache(size_t cache_size, size_t matched_node_count_to_extend_callchain) in LRUCache() function in simpleperf::call_chain_joiner_impl::LRUCache
41 LRUCache::~LRUCache() { in ~LRUCache()
45 void LRUCache::AddCallChain(pid_t tid, std::vector<uint64_t>& ips, std::vector<uint64_t>& sps) { in AddCallChain()
104 bool LRUCache::CacheNodeEqual(const CacheNode* n1, const CacheNode* n2) { in CacheNodeEqual()
108 size_t LRUCache::CacheNodeHash(const CacheNode* n) { in CacheNodeHash()
112 CacheNode* LRUCache::GetNode(uint32_t tid, uint64_t ip, uint64_t sp) { in GetNode()
134 CacheNode* LRUCache::AllocNode() { in AllocNode()
150 void LRUCache::LinkParent(CacheNode* child, CacheNode* new_parent) { in LinkParent()
165 void LRUCache::UnlinkParent(CacheNode* child) { in UnlinkParent()
331 LRUCache cache(cache_stat_.cache_size, cache_stat_.matched_node_count_to_extend_callchain); in JoinCallChains()
DCallChainJoiner.h64 class LRUCache {
69 LRUCache(size_t cache_size = 8 * 1024 * 1024, size_t matched_node_count_to_extend_callchain = 1);
70 ~LRUCache();