+2006-10-04 Benjamin Kosnik <bkoz@redhat.com>
+
+ * testsuite/util/performance/priority_queue/mem_usage/
+ pop_test.hpp: Correct typo.
+ * testsuite/util/performance/assoc/mem_usage/
+ multimap_insert_test.hpp: Same.
+ * testsuite/util/performance/assoc/mem_usage/erase_test.hpp: Same.
+
2006-10-03 Benjamin Kosnik <bkoz@redhat.com>
* testsuite/util/testsuite_allocator.h (allocation_tracker): To
It ins_it_e = m_ins_b;
std::advance(ins_it_e, ins_size);
+ typedef __gnu_test::tracker_allocator_counter counter_type;
__gnu_test::tracker_allocator<char> alloc;
- const size_t init_mem = alloc.get_allocation_count() - alloc.get_deallocation_count();
+ const size_t init_mem = counter_type::get_allocation_count()
+ - counter_type::get_deallocation_count();
Cntnr cntnr(ins_it_b, ins_it_e);
while (cntnr.size() > 1)
cntnr.erase(*cntnr.begin());
- const size_t final_mem = alloc.get_allocation_count() - alloc.get_deallocation_count();
+ const size_t final_mem = counter_type::get_allocation_count()
+ - counter_type::get_deallocation_count();
assert(final_mem > init_mem);
const size_t delta_mem = final_mem - init_mem;
res_set_fmt.add_res(ins_size, static_cast<double>(delta_mem));
multimap_insert_test<It, Native>::
insert(Cntnr, It ins_it_b, It ins_it_e, pb_ds::detail::true_type)
{
+ typedef __gnu_test::tracker_allocator_counter counter_type;
__gnu_test::tracker_allocator<char> alloc;
- const size_t init_mem = alloc.get_allocation_count() - alloc.get_deallocation_count();
+ const size_t init_mem = counter_type::get_allocation_count()
+ - counter_type::get_deallocation_count();
Cntnr cntnr;
for (It ins_it = ins_it_b; ins_it != ins_it_e; ++ins_it)
cntnr.insert((typename Cntnr::const_reference)(*ins_it));
- const size_t final_mem = alloc.get_allocation_count() - alloc.get_deallocation_count();
+ const size_t final_mem = counter_type::get_allocation_count()
+ - counter_type::get_deallocation_count();
assert(final_mem > init_mem);
return (final_mem - init_mem);
}
multimap_insert_test<It, Native>::
insert(Cntnr, It ins_it_b, It ins_it_e, pb_ds::detail::false_type)
{
+ typedef __gnu_test::tracker_allocator_counter counter_type;
__gnu_test::tracker_allocator<char> alloc;
- const size_t init_mem = alloc.get_allocation_count() - alloc.get_deallocation_count();
+ const size_t init_mem = counter_type::get_allocation_count()
+ - counter_type::get_deallocation_count();
Cntnr cntnr;
for (It ins_it = ins_it_b; ins_it != ins_it_e; ++ins_it)
cntnr[ins_it->first].insert(ins_it->second);
- const size_t final_mem = alloc.get_allocation_count() - alloc.get_deallocation_count();
+ const size_t final_mem = counter_type::get_allocation_count()
+ - counter_type::get_deallocation_count();
assert(final_mem > init_mem);
return (final_mem - init_mem);
}
It ins_it_e = m_ins_b;
std::advance(ins_it_e, ins_size);
+ typedef __gnu_test::tracker_allocator_counter counter_type;
__gnu_test::tracker_allocator<char> alloc;
- const size_t init_mem = alloc.get_allocation_count() - alloc.get_deallocation_count();
+ const size_t init_mem = counter_type::get_allocation_count()
+ - counter_type::get_deallocation_count();
Cntnr cntnr;
for (It ins_it = ins_it_b; ins_it != ins_it_e; ++ins_it)
cntnr.push(ins_it->first);
while (cntnr.size() > 1)
cntnr.pop();
- const size_t final_mem = alloc.get_allocation_count() - alloc.get_deallocation_count();
+ const size_t final_mem = counter_type::get_allocation_count()
+ - counter_type::get_deallocation_count();
assert(final_mem > init_mem);
const size_t delta_mem = final_mem - init_mem;
res_set_fmt.add_res(ins_size, static_cast<double>(delta_mem));
} // namespace test
} // namespace pb_ds
-#endif // #ifndef PB_DS_POP_TEST_HPP
+#endif