void vec_prefix::release_overhead (void *ptr, size_t size, bool in_dtor MEM_STAT_DECL) { if (!vec_mem_desc.contains_descriptor_for_instance (ptr)) vec_mem_desc.register_descriptor (ptr, VEC_ORIGIN, false FINAL_PASS_MEM_STAT); vec_mem_desc.release_instance_overhead (ptr, size, in_dtor); }
void vec_prefix::register_overhead (void *ptr, size_t size, size_t elements MEM_STAT_DECL) { vec_mem_desc.register_descriptor (ptr, VEC_ORIGIN, false FINAL_PASS_MEM_STAT); vec_usage *usage = vec_mem_desc.register_instance_overhead (size, ptr); usage->m_items += elements; if (usage->m_items_peak < usage->m_items) usage->m_items_peak = usage->m_items; }
/* Account the overhead. */ static void register_overhead (bitmap b, int amount) { if (bitmap_mem_desc.contains_descriptor_for_instance (b)) bitmap_mem_desc.register_instance_overhead (amount, b); }
/* Register new bitmap. */ void bitmap_register (bitmap b MEM_STAT_DECL) { bitmap_mem_desc.register_descriptor (b, BITMAP_ORIGIN, false FINAL_PASS_MEM_STAT); }
void dump_vec_loc_statistics (void) { vec_mem_desc.dump (VEC_ORIGIN); }