mem-stats-traits.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* A memory statistics traits.
  2. Copyright (C) 2015-2019 Free Software Foundation, Inc.
  3. Contributed by Martin Liska <mliska@suse.cz>
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify it under
  6. the terms of the GNU General Public License as published by the Free
  7. Software Foundation; either version 3, or (at your option) any later
  8. version.
  9. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  10. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  12. for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GCC; see the file COPYING3. If not see
  15. <http://www.gnu.org/licenses/>. */
  16. #ifndef GCC_MEM_STATS_TRAITS_H
  17. #define GCC_MEM_STATS_TRAITS_H
  18. /* Memory allocation origin. */
  19. enum mem_alloc_origin
  20. {
  21. HASH_TABLE_ORIGIN,
  22. HASH_MAP_ORIGIN,
  23. HASH_SET_ORIGIN,
  24. VEC_ORIGIN,
  25. BITMAP_ORIGIN,
  26. GGC_ORIGIN,
  27. ALLOC_POOL_ORIGIN,
  28. MEM_ALLOC_ORIGIN_LENGTH
  29. };
  30. /* Verbose names of the memory allocation origin. */
  31. static const char * mem_alloc_origin_names[] = { "Hash tables", "Hash maps",
  32. "Hash sets", "Heap vectors", "Bitmaps", "GGC memory", "Allocation pool" };
  33. #endif // GCC_MEM_STATS_TRAITS_H