]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/mem-stats-traits.h
Port pool-allocator memory stats to a new infrastructure.
[thirdparty/gcc.git] / gcc / mem-stats-traits.h
1 #ifndef GCC_MEM_STATS_TRAITS_H
2 #define GCC_MEM_STATS_TRAITS_H
3
4 /* Memory allocation origin. */
5 enum mem_alloc_origin
6 {
7 HASH_TABLE,
8 HASH_MAP,
9 HASH_SET,
10 VEC,
11 BITMAP,
12 GGC,
13 ALLOC_POOL,
14 MEM_ALLOC_ORIGIN_LENGTH
15 };
16
17 /* Verbose names of the memory allocation origin. */
18 static const char * mem_alloc_origin_names[] = { "Hash tables", "Hash maps",
19 "Hash sets", "Heap vectors", "Bitmaps", "GGC memory", "Allocation pool" };
20
21 #endif // GCC_MEM_STATS_TRAITS_H