aboutsummaryrefslogtreecommitdiff
path: root/gcc/mem-stats-traits.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2015-06-03 11:33:32 +0200
committerMartin Liska <marxin@gcc.gnu.org>2015-06-03 09:33:32 +0000
commitac05926156c0997b191af1176122ee3d8663d19e (patch)
tree125beb54d6d03f07b223139332359997e5d92a29 /gcc/mem-stats-traits.h
parent8a810680ee212c8c01239699859a4dd395db6174 (diff)
downloadgcc-ac05926156c0997b191af1176122ee3d8663d19e.zip
gcc-ac05926156c0997b191af1176122ee3d8663d19e.tar.gz
gcc-ac05926156c0997b191af1176122ee3d8663d19e.tar.bz2
Port pool-allocator memory stats to a new infrastructure.
* alloc-pool.c (allocate_pool_descriptor): Remove. (struct pool_output_info): Likewise. (print_alloc_pool_statistics): Likewise. (dump_alloc_pool_statistics): Likewise. * alloc-pool.h (struct pool_usage): New struct. (pool_allocator::initialize): Change usage of memory statistics to a new interface. (pool_allocator::release): Likewise. (pool_allocator::allocate): Likewise. (pool_allocator::remove): Likewise. * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value for a pool allocator. * mem-stats.h (struct mem_location): Add new ctor. (struct mem_usage): Add counter for number of instances. (mem_alloc_description::register_descriptor): New overload of * mem-stats.h (mem_location::to_string): New function. * bitmap.h (struct bitmap_usage): Use this new function. * ggc-common.c (struct ggc_usage): Likewise. the function. From-SVN: r224070
Diffstat (limited to 'gcc/mem-stats-traits.h')
-rw-r--r--gcc/mem-stats-traits.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/mem-stats-traits.h b/gcc/mem-stats-traits.h
index de1614e..f7843f2 100644
--- a/gcc/mem-stats-traits.h
+++ b/gcc/mem-stats-traits.h
@@ -10,11 +10,12 @@ enum mem_alloc_origin
VEC,
BITMAP,
GGC,
+ ALLOC_POOL,
MEM_ALLOC_ORIGIN_LENGTH
};
/* Verbose names of the memory allocation origin. */
static const char * mem_alloc_origin_names[] = { "Hash tables", "Hash maps",
- "Hash sets", "Heap vectors", "Bitmaps", "GGC memory" };
+ "Hash sets", "Heap vectors", "Bitmaps", "GGC memory", "Allocation pool" };
#endif // GCC_MEM_STATS_TRAITS_H