File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ void thread_body()
3333void monitor_body ()
3434{
3535 for (int i = 0 ; i < 10000 ; i++) {
36- std::cout << " Current: " << snmalloc::Alloc::StateHandle ::get_current_usage () << std::endl;
37- std::cout << " Peak : " << snmalloc::Alloc::StateHandle ::get_peak_usage () << std::endl;
38- std::cout << " Allocs : " << snmalloc::Alloc::StateHandle ::pool ().get_count () << std::endl;
36+ std::cout << " Current: " << snmalloc::Alloc::Config::Backend ::get_current_usage () << std::endl;
37+ std::cout << " Peak : " << snmalloc::Alloc::Config::Backend ::get_peak_usage () << std::endl;
38+ std::cout << " Allocs : " << snmalloc::Alloc::Config ::pool ().get_count () << std::endl;
3939 std::cout << " --------------------------------------------" << std::endl;
4040 std::this_thread::sleep_for (std::chrono::seconds (1 ));
4141 }
Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ void debug_check_empty_1()
2626 abort ();
2727 }
2828
29- snmalloc::print_alloc_stats<snmalloc::Globals >();
29+ snmalloc::print_alloc_stats<snmalloc::StandardConfig >();
3030
3131 a.dealloc (r);
3232
33- snmalloc::print_alloc_stats<snmalloc::Globals >();
33+ snmalloc::print_alloc_stats<snmalloc::StandardConfig >();
3434
3535 snmalloc::debug_check_empty<snmalloc::StandardConfig>(&result);
3636 if (result != true )
@@ -53,7 +53,7 @@ void debug_check_empty_1()
5353 abort ();
5454 }
5555
56- snmalloc::print_alloc_stats<snmalloc::Globals >();
56+ snmalloc::print_alloc_stats<snmalloc::StandardConfig >();
5757
5858 a.dealloc (r);
5959
@@ -67,7 +67,6 @@ void debug_check_empty_1()
6767 }
6868
6969 snmalloc::print_alloc_stats<snmalloc::StandardConfig>();
70- #endif
7170}
7271
7372template <size_t size>
You can’t perform that action at this time.
0 commit comments