Rename slab_allocator to chunk_allocator
This commit is contained in:
committed by
Matthew Parkinson
parent
342d826310
commit
4a7cd268f8
@@ -6,8 +6,8 @@ using namespace snmalloc;
|
||||
|
||||
void get_malloc_info_v1(malloc_info_v1* stats)
|
||||
{
|
||||
auto unused_chunks = Globals::get_slab_allocator_state().unused_memory();
|
||||
auto peak = Globals::get_slab_allocator_state().peak_memory_usage();
|
||||
auto unused_chunks = Globals::get_chunk_allocator_state().unused_memory();
|
||||
auto peak = Globals::get_chunk_allocator_state().peak_memory_usage();
|
||||
stats->current_memory_usage = peak - unused_chunks;
|
||||
stats->peak_memory_usage = peak;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user