• Home
  • Raw
  • Download

Lines Matching refs:ips

45 void LRUCache::AddCallChain(pid_t tid, std::vector<uint64_t>& ips, std::vector<uint64_t>& sps) {  in AddCallChain()  argument
48 for (size_t i = 0; i < ips.size(); ++i) { in AddCallChain()
49 CacheNode* node = GetNode(tid, ips[i], sps[i]); in AddCallChain()
68 std::vector<uint64_t> origin_ip = ips; in AddCallChain()
91 ips.resize(chain.size()); in AddCallChain()
96 ips.push_back(top->ip); in AddCallChain()
178 const std::vector<uint64_t>& ips, in WriteCallChain() argument
196 MoveToBinaryFormat(ips.data(), ip_count, p); in WriteCallChain()
207 std::vector<uint64_t>& ips, std::vector<uint64_t>& sps) { in ReadCallChain() argument
225 ips.resize(ip_count); in ReadCallChain()
226 MoveFromBinaryFormat(ips.data(), ip_count, p); in ReadCallChain()
234 std::vector<uint64_t>& ips, in ReadCallChainInReverseOrder() argument
254 ips.resize(ip_count); in ReadCallChainInReverseOrder()
255 MoveFromBinaryFormat(ips.data(), ip_count, p); in ReadCallChainInReverseOrder()
291 const std::vector<uint64_t>& ips, in AddCallChain() argument
293 CHECK_EQ(ips.size(), sps.size()); in AddCallChain()
294 CHECK_GT(ips.size(), 0u); in AddCallChain()
297 size_t ip_count = ips.size(); in AddCallChain()
298 for (size_t i = 1; i < ips.size(); ++i) { in AddCallChain()
305 if (ips[j - 1] == ips[i]) { in AddCallChain()
324 return WriteCallChain(original_chains_fp_, pid, tid, type, ips, sps, ip_count); in AddCallChain()
343 std::vector<uint64_t> ips; in JoinCallChains() local
356 if (!ReadCallChainInReverseOrder(pair.first, pid, tid, type, ips, sps)) { in JoinCallChains()
365 stat_.before_join_node_count += ips.size(); in JoinCallChains()
368 cache.AddCallChain(tid, ips, sps); in JoinCallChains()
371 stat_.after_join_node_count += ips.size(); in JoinCallChains()
372 stat_.after_join_max_chain_length = std::max(stat_.after_join_max_chain_length, ips.size()); in JoinCallChains()
375 if (!WriteCallChain(pair.second, pid, tid, type, ips, sps, ips.size())) { in JoinCallChains()
385 std::vector<uint64_t>& ips, in GetNextCallChain() argument
406 return ReadCallChain(fp, pid, tid, type, ips, sps); in GetNextCallChain()