aboutsummaryrefslogtreecommitdiff
path: root/gcc/hash-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/hash-table.c')
-rw-r--r--gcc/hash-table.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/gcc/hash-table.c b/gcc/hash-table.c
index 3127e9c..012b241 100644
--- a/gcc/hash-table.c
+++ b/gcc/hash-table.c
@@ -31,7 +31,6 @@ along with GCC; see the file COPYING3. If not see
#include "coretypes.h"
#include "hash-table.h"
-
/* Table of primes and multiplicative inverses.
Note that these are not minimally reduced inverses. Unlike when generating
@@ -99,3 +98,15 @@ hash_table_higher_prime_index (unsigned long n)
return low;
}
+mem_alloc_description<mem_usage> hash_table_usage;
+
+/* Support function for statistics. */
+void dump_hash_table_loc_statistics (void)
+{
+ for (unsigned i = HASH_TABLE; i <= HASH_SET; i++)
+ {
+ mem_alloc_origin origin = (mem_alloc_origin) i;
+ hash_table_usage.dump (origin);
+ }
+}
+