Home
last modified time | relevance | path

Searched refs:LockFreeAddressHashSet (Results 1 – 5 of 5) sorted by relevance

/external/libchrome/base/sampling_heap_profiler/
Dlock_free_address_hash_set_unittest.cc21 static bool Subset(const LockFreeAddressHashSet& superset, in Subset()
22 const LockFreeAddressHashSet& subset) { in Subset()
24 for (LockFreeAddressHashSet::Node* node = in Subset()
25 reinterpret_cast<LockFreeAddressHashSet::Node*>(bucket); in Subset()
26 node; node = LockFreeAddressHashSet::next_node(node)) { in Subset()
35 static bool Equals(const LockFreeAddressHashSet& set1, in Equals()
36 const LockFreeAddressHashSet& set2) { in Equals()
40 static size_t BucketSize(const LockFreeAddressHashSet& set, size_t bucket) { in BucketSize()
42 LockFreeAddressHashSet::Node* node = in BucketSize()
43 reinterpret_cast<LockFreeAddressHashSet::Node*>(set.buckets_[bucket]); in BucketSize()
[all …]
Dlock_free_address_hash_set.h42 class BASE_EXPORT LockFreeAddressHashSet {
44 explicit LockFreeAddressHashSet(size_t buckets_count);
45 ~LockFreeAddressHashSet();
70 void Copy(const LockFreeAddressHashSet& other);
103 inline LockFreeAddressHashSet::Node::Node(void* a_key) { in Node()
108 inline bool LockFreeAddressHashSet::Contains(void* key) const { in Contains()
112 inline void LockFreeAddressHashSet::Remove(void* key) { in Remove()
123 inline LockFreeAddressHashSet::Node* LockFreeAddressHashSet::FindNode( in FindNode()
133 inline LockFreeAddressHashSet::Node* LockFreeAddressHashSet::Bucket( in Bucket()
143 inline uint32_t LockFreeAddressHashSet::Hash(void* key) { in Hash()
Dlock_free_address_hash_set.cc13 LockFreeAddressHashSet::LockFreeAddressHashSet(size_t buckets_count) in LockFreeAddressHashSet() function in base::LockFreeAddressHashSet
19 LockFreeAddressHashSet::~LockFreeAddressHashSet() { in ~LockFreeAddressHashSet()
30 void LockFreeAddressHashSet::Insert(void* key) { in Insert()
60 void LockFreeAddressHashSet::Copy(const LockFreeAddressHashSet& other) { in Copy()
Dsampling_heap_profiler.h23 class LockFreeAddressHashSet; variable
99 static LockFreeAddressHashSet& sampled_addresses_set();
105 std::stack<std::unique_ptr<LockFreeAddressHashSet>> sampled_addresses_stack_;
Dsampling_heap_profiler.cc183 auto sampled_addresses = std::make_unique<LockFreeAddressHashSet>(64); in SamplingHeapProfiler()
410 LockFreeAddressHashSet& current_set = sampled_addresses_set(); in BalanceAddressesHashSet()
414 std::make_unique<LockFreeAddressHashSet>(current_set.buckets_count() * 2); in BalanceAddressesHashSet()
426 LockFreeAddressHashSet& SamplingHeapProfiler::sampled_addresses_set() { in sampled_addresses_set()
427 return *reinterpret_cast<LockFreeAddressHashSet*>( in sampled_addresses_set()