11debfc3dSmrg /* Functions to support a pool of allocatable objects. 2*8feb0f0bSmrg Copyright (C) 1987-2020 Free Software Foundation, Inc. 31debfc3dSmrg Contributed by Daniel Berlin <dan@cgsoftware.com> 41debfc3dSmrg 51debfc3dSmrg This file is part of GCC. 61debfc3dSmrg 71debfc3dSmrg GCC is free software; you can redistribute it and/or modify it under 81debfc3dSmrg the terms of the GNU General Public License as published by the Free 91debfc3dSmrg Software Foundation; either version 3, or (at your option) any later 101debfc3dSmrg version. 111debfc3dSmrg 121debfc3dSmrg GCC is distributed in the hope that it will be useful, but WITHOUT ANY 131debfc3dSmrg WARRANTY; without even the implied warranty of MERCHANTABILITY or 141debfc3dSmrg FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 151debfc3dSmrg for more details. 161debfc3dSmrg 171debfc3dSmrg You should have received a copy of the GNU General Public License 181debfc3dSmrg along with GCC; see the file COPYING3. If not see 191debfc3dSmrg <http://www.gnu.org/licenses/>. */ 201debfc3dSmrg 211debfc3dSmrg #include "config.h" 221debfc3dSmrg #include "system.h" 231debfc3dSmrg #include "coretypes.h" 241debfc3dSmrg #include "alloc-pool.h" 251debfc3dSmrg 261debfc3dSmrg ALLOC_POOL_ID_TYPE last_id; 271debfc3dSmrg mem_alloc_description<pool_usage> pool_allocator_usage; 281debfc3dSmrg bool after_memory_report = false; 291debfc3dSmrg 301debfc3dSmrg /* Output per-alloc_pool memory usage statistics. */ 311debfc3dSmrg void dump_alloc_pool_statistics(void)321debfc3dSmrgdump_alloc_pool_statistics (void) 331debfc3dSmrg { 341debfc3dSmrg if (! GATHER_STATISTICS) 351debfc3dSmrg return; 361debfc3dSmrg 371debfc3dSmrg pool_allocator_usage.dump (ALLOC_POOL_ORIGIN); 381debfc3dSmrg } 39