Home
last modified time | relevance | path

Searched refs:allocation_count (Results 1 – 13 of 13) sorted by relevance

/third_party/boost/libs/multiprecision/test/
Dtest_move.cpp51 unsigned allocation_count = 0; variable
59 ++allocation_count; in alloc_func()
70 ++allocation_count; in realloc_func()
138 if (allocation_count) in main()
145 allocation_count = 0; in main()
147 BOOST_TEST(allocation_count == 0); in main()
167 allocation_count = 0; in main()
170 BOOST_TEST(allocation_count == 0); in main()
187 if (allocation_count) in main()
194 allocation_count = 0; in main()
[all …]
/third_party/boost/libs/container/test/
Dglobal_resource_test.cpp43 std::size_t allocation_count = 0; variable
47 ++allocation_count; in operator new[]()
53 --allocation_count; in operator delete[]()
68 std::size_t memcount = allocation_count; in test_new_delete_resource()
73 BOOST_TEST(memcount == allocation_count); in test_new_delete_resource()
77 BOOST_TEST((allocation_count - memcount) == 1); in test_new_delete_resource()
80 BOOST_TEST(memcount == allocation_count); in test_new_delete_resource()
/third_party/boost/libs/multiprecision/performance/
Dsf_performance.hpp167 extern boost::atomic<unsigned> allocation_count;
174 allocation_count = 0; in basic_allocation_test()
176 std::cout << "Allocation count for type " << name << " = " << allocation_count << std::endl; in basic_allocation_test()
183 allocation_count = 0; in poly_allocation_test()
185 std::cout << "Allocation count for type " << name << " = " << allocation_count << std::endl; in poly_allocation_test()
194 allocation_count = 0; in time_proc()
200 std::cout << "Total allocations for " << name << " = " << allocation_count << std::endl; in time_proc()
202 result_table[tablename][name] = std::make_pair(time.count(), (unsigned)allocation_count); in time_proc()
213 std::cout << "Total allocations for " << name << " = " << allocation_count << std::endl; in time_proc()
217 … result_table[tablename][ss.str()] = std::make_pair(time.count(), (unsigned)allocation_count); in time_proc()
Dsf_performance.cpp8 boost::atomic<unsigned> allocation_count(0); variable
17 ++allocation_count; in alloc_func()
28 ++allocation_count; in realloc_func()
34 ++allocation_count; in operator new()
40 ++allocation_count; in operator new[]()
Dmiller_rabin_performance.cpp8 unsigned allocation_count = 0; variable
16 ++allocation_count; in alloc_func()
27 ++allocation_count; in realloc_func()
Dmiller_rabin_performance.hpp48 extern unsigned allocation_count;
/third_party/grpc/test/cpp/end2end/
Dmessage_allocator_end2end_test.cc249 allocation_count++; in AllocateMessages()
253 int allocation_count = 0; member in grpc::testing::__anon6e7bb6e60111::SimpleAllocatorTest::SimpleAllocator
268 EXPECT_EQ(kRpcCount, allocator->allocation_count); in TEST_P()
292 EXPECT_EQ(kRpcCount, allocator->allocation_count); in TEST_P()
318 EXPECT_EQ(kRpcCount, allocator->allocation_count); in TEST_P()
349 allocation_count++; in AllocateMessages()
352 int allocation_count = 0; member in grpc::testing::__anon6e7bb6e60111::ArenaAllocatorTest::ArenaAllocator
362 EXPECT_EQ(kRpcCount, allocator->allocation_count); in TEST_P()
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
Dlow_level_alloc.cc209 int32_t allocation_count ABSL_GUARDED_BY(mu);
352 allocation_count(0), in Arena()
388 if (arena->allocation_count != 0) { in DeleteArena()
516 ABSL_RAW_CHECK(arena->allocation_count > 0, "nothing in arena to free"); in Free()
517 arena->allocation_count--; in Free()
597 arena->allocation_count++; in DoAllocWithArena()
/third_party/abseil-cpp/absl/base/internal/
Dlow_level_alloc.cc209 int32_t allocation_count ABSL_GUARDED_BY(mu);
352 allocation_count(0), in Arena()
388 if (arena->allocation_count != 0) { in DeleteArena()
516 ABSL_RAW_CHECK(arena->allocation_count > 0, "nothing in arena to free"); in Free()
517 arena->allocation_count--; in Free()
597 arena->allocation_count++; in DoAllocWithArena()
/third_party/expat/tests/
Druntests.c7411 static intptr_t allocation_count = ALLOC_ALWAYS_SUCCEED; variable
7417 if (allocation_count == 0) in duff_allocator()
7419 if (allocation_count != ALLOC_ALWAYS_SUCCEED) in duff_allocator()
7420 allocation_count--; in duff_allocator()
7442 allocation_count = i; in START_TEST()
7462 allocation_count = i; in START_TEST()
7790 allocation_count = 3; in external_entity_parser_create_alloc_fail_handler()
7799 allocation_count = ALLOC_ALWAYS_SUCCEED; in external_entity_parser_create_alloc_fail_handler()
7826 allocation_count = ALLOC_ALWAYS_SUCCEED; in alloc_setup()
7846 allocation_count = i; in START_TEST()
[all …]
/third_party/skia/third_party/externals/expat/expat/tests/
Druntests.c7203 static intptr_t allocation_count = ALLOC_ALWAYS_SUCCEED; variable
7209 if (allocation_count == 0) in duff_allocator()
7211 if (allocation_count != ALLOC_ALWAYS_SUCCEED) in duff_allocator()
7212 allocation_count--; in duff_allocator()
7234 allocation_count = i; in START_TEST()
7254 allocation_count = i; in START_TEST()
7571 allocation_count = ALLOC_ALWAYS_SUCCEED; in alloc_setup()
7591 allocation_count = i; in START_TEST()
7655 allocation_count = i; in START_TEST()
7683 allocation_count = i; in START_TEST()
[all …]
/third_party/boost/libs/asio/test/
Ddeadline_timer.cpp334 int allocation_count = 0; in deadline_timer_custom_allocation_test() local
339 timers[i].t.async_wait(custom_allocation_timer_handler(&allocation_count)); in deadline_timer_custom_allocation_test()
345 timers[i].t.async_wait(custom_allocation_timer_handler(&allocation_count)); in deadline_timer_custom_allocation_test()
353 BOOST_ASIO_CHECK(allocation_count == 0); in deadline_timer_custom_allocation_test()
Dsystem_timer.cpp354 int allocation_count = 0; in system_timer_custom_allocation_test() local
359 timers[i].t.async_wait(custom_allocation_timer_handler(&allocation_count)); in system_timer_custom_allocation_test()
365 timers[i].t.async_wait(custom_allocation_timer_handler(&allocation_count)); in system_timer_custom_allocation_test()
373 BOOST_ASIO_CHECK(allocation_count == 0); in system_timer_custom_allocation_test()