]>
Commit | Line | Data |
---|---|---|
0ff42de5 | 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, | |
7da284df | 13 | ALLOC_POOL, |
0ff42de5 | 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", | |
7da284df | 19 | "Hash sets", "Heap vectors", "Bitmaps", "GGC memory", "Allocation pool" }; |
0ff42de5 | 20 | |
21 | #endif // GCC_MEM_STATS_TRAITS_H |