| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | test_allocator.h | 86 ++stats_->count; in test_allocator() 94 ++stats_->count; in test_allocator() 102 ++stats_->count; in test_allocator() 106 : data_(a.data_), id_(a.id_), stats_(a.stats_) { in test_allocator() 110 ++stats_->count; in test_allocator() 128 : data_(a.data_), id_(a.id_), stats_(a.stats_) { in test_allocator() 150 if (stats_->time_to_throw >= stats_->throw_after) 222 : data_(a.data_), stats_(a.stats_) { in non_default_test_allocator() 240 if (stats_->time_to_throw >= stats_->throw_after) 304 : data_(a.data_), id_(a.id_), stats_(a.stats_) in test_allocator() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_allocator_local_cache.h | 23 stats_.Init(); in Init() 25 s->Register(&stats_); in Init() 31 s->Unregister(&stats_); in Destroy() 44 stats_.Add(AllocatorStatAllocated, c->class_size); in Allocate() 62 stats_.Sub(AllocatorStatAllocated, c->class_size); in Deallocate() 85 AllocatorStats stats_; member 133 stats_.Init(); in Init() 135 s->Register(&stats_); in Init() 156 s->Unregister(&stats_); in Destroy() 170 stats_.Add(AllocatorStatAllocated, c->class_size); in Allocate() [all …]
|
| H A D | sanitizer_allocator_stats.h | 34 v += atomic_load(&stats_[i], memory_order_relaxed); in Add() 35 atomic_store(&stats_[i], v, memory_order_relaxed); in Add() 39 v = atomic_load(&stats_[i], memory_order_relaxed) - v; in Sub() 40 atomic_store(&stats_[i], v, memory_order_relaxed); in Sub() 44 atomic_store(&stats_[i], v, memory_order_relaxed); in Set() 48 return atomic_load(&stats_[i], memory_order_relaxed); in Get() 55 atomic_uintptr_t stats_[AllocatorStatCount]; variable
|
| H A D | sanitizer_allocator_combined.h | 33 stats_.InitLinkerInitialized(); in InitLinkerInitialized() 39 stats_.Init(); 71 res = secondary_.Allocate(&stats_, original_size, alignment); in Allocate() 94 secondary_.Deallocate(&stats_, p); in Deallocate() 156 cache->Init(&stats_); in InitCache() 160 cache->Destroy(&primary_, &stats_); in DestroyCache() 168 stats_.Get(s); in GetStats() 198 AllocatorGlobalStats stats_; variable
|
| /llvm-project-15.0.7/compiler-rt/lib/hwasan/ |
| H A D | hwasan_thread_list.h | 159 stats_.n_live_threads++; in AddThreadStats() 160 stats_.total_stack_size += t->stack_size(); in AddThreadStats() 165 stats_.n_live_threads--; in RemoveThreadStats() 166 stats_.total_stack_size -= t->stack_size(); in RemoveThreadStats() 171 return stats_; in GetThreadStats() 198 ThreadStats stats_; variable
|
| /llvm-project-15.0.7/libcxx/test/std/containers/container.adaptors/queue/queue.cons.alloc/ |
| H A D | ctor_iterators.pass.cpp | 27 explicit GetAlloc(test_allocator_statistics& stats_, const int* begin, const int* end) in GetAlloc() argument 28 : base_type(begin, end, test_allocator<int>(&stats_)), stats(&stats_) {} in GetAlloc()
|
| /llvm-project-15.0.7/libcxx/test/std/containers/container.adaptors/stack/stack.cons.alloc/ |
| H A D | ctor_iterators.pass.cpp | 27 GetAlloc(test_allocator_statistics& stats_, const int* begin, const int* end) in GetAlloc() argument 28 : base_type(begin, end, test_allocator<int>(&stats_)), stats(&stats_) {} in GetAlloc()
|
| /llvm-project-15.0.7/compiler-rt/lib/memprof/ |
| H A D | memprof_thread.h | 90 MemprofStats &stats() { return stats_; } in stats() 116 MemprofStats stats_; variable
|
| H A D | memprof_thread.cpp | 101 FlushToDeadThreadStats(&stats_); in Destroy()
|
| /llvm-project-15.0.7/compiler-rt/lib/asan/ |
| H A D | asan_thread.h | 128 AsanStats &stats() { return stats_; } in stats() 167 AsanStats stats_; variable
|
| H A D | asan_thread.cpp | 110 FlushToDeadThreadStats(&stats_); in Destroy()
|
| /llvm-project-15.0.7/libcxx/test/std/language.support/cmp/cmp.alg/ |
| H A D | compare_partial_order_fallback.pass.cpp | 249 Stats *stats_; member 251 constexpr explicit A(Stats *stats, double value) : stats_(stats), value_(value) {} in A() 252 … friend constexpr bool operator==(A a, A b) { a.stats_->eq += 1; return a.value_ == b.value_; } in operator ==() 253 friend constexpr bool operator<(A a, A b) { a.stats_->lt += 1; return a.value_ < b.value_; } in operator <()
|
| H A D | compare_strong_order_fallback.pass.cpp | 455 Stats *stats_; member 457 constexpr explicit A(Stats *stats, double value) : stats_(stats), value_(value) {} in A() 458 … friend constexpr bool operator==(A a, A b) { a.stats_->eq += 1; return a.value_ == b.value_; } in operator ==() 459 friend constexpr bool operator<(A a, A b) { a.stats_->lt += 1; return a.value_ < b.value_; } in operator <()
|
| H A D | compare_weak_order_fallback.pass.cpp | 502 Stats *stats_; member 504 constexpr explicit A(Stats *stats, double value) : stats_(stats), value_(value) {} in A() 505 … friend constexpr bool operator==(A a, A b) { a.stats_->eq += 1; return a.value_ == b.value_; } in operator ==() 506 friend constexpr bool operator<(A a, A b) { a.stats_->lt += 1; return a.value_ < b.value_; } in operator <()
|