GCC Middle and Back End API Reference
|
#include <alloc-pool.h>
Public Member Functions | |
pool_usage () | |
pool_usage (size_t allocated, size_t times, size_t peak, size_t instances, size_t element_size, const char *pool_name) | |
pool_usage | operator+ (const pool_usage &second) |
void | dump (mem_location *loc, const mem_usage &total) const |
void | dump_footer () |
void | register_overhead (size_t size) |
void | release_overhead (size_t size) |
mem_usage | operator+ (const mem_usage &second) |
bool | operator== (const mem_usage &second) const |
bool | operator< (const mem_usage &second) const |
void | dump_footer () const |
Static Public Member Functions | |
static void | dump_header (const char *name) |
static int | compare (const void *first, const void *second) |
static float | get_percent (size_t nominator, size_t denominator) |
static void | print_dash_line (size_t count=140) |
Data Fields | |
size_t | m_element_size |
const char * | m_pool_name |
size_t | m_allocated |
size_t | m_times |
size_t | m_peak |
size_t | m_instances |
Pool allocator memory usage.
|
inline |
Referenced by operator+().
|
inline |
|
inlinestaticinherited |
|
inline |
|
inlineinherited |
References mem_usage::m_allocated, mem_usage::m_times, PRsa, and SIZE_AMOUNT.
|
inline |
References mem_usage::m_allocated, mem_usage::m_instances, PRsa, and SIZE_AMOUNT.
|
inlinestatic |
|
inlinestaticinherited |
Referenced by bitmap_usage::dump(), ggc_usage::dump(), mem_usage::dump(), and dump().
|
inline |
References mem_usage::m_allocated, mem_usage::m_peak, and mem_usage::m_times.
References mem_usage::m_allocated, mem_usage::m_peak, and mem_usage::m_times.
|
inlinestaticinherited |
References count, and fputc().
Referenced by dump_tree_statistics().
|
inlineinherited |
References mem_usage::m_allocated, mem_usage::m_peak, and mem_usage::m_times.
|
inlineinherited |
References gcc_assert, and mem_usage::m_allocated.
|
inherited |
Referenced by bitmap_usage::dump(), mem_usage::dump(), dump(), vec_usage::dump(), mem_usage::dump_footer(), dump_footer(), vec_usage::dump_footer(), ggc_usage::get_balance(), bitmap_usage::operator+(), ggc_usage::operator+(), mem_usage::operator+(), operator+(), vec_usage::operator+(), mem_usage::operator<(), mem_usage::operator==(), ggc_usage::register_overhead(), mem_usage::register_overhead(), and mem_usage::release_overhead().
size_t pool_usage::m_element_size |
Referenced by dump(), base_pool_allocator< TBlockAllocator >::initialize(), and operator+().
|
inherited |
Referenced by dump(), dump_footer(), mem_usage::operator+(), and operator+().
|
inherited |
Referenced by bitmap_usage::dump(), mem_usage::dump(), dump(), vec_usage::dump(), bitmap_usage::operator+(), ggc_usage::operator+(), mem_usage::operator+(), operator+(), vec_usage::operator+(), ggc_usage::operator<(), mem_usage::operator<(), ggc_usage::operator==(), mem_usage::operator==(), and mem_usage::register_overhead().
const char* pool_usage::m_pool_name |
Referenced by dump(), base_pool_allocator< TBlockAllocator >::initialize(), and operator+().
|
inherited |
Referenced by bitmap_usage::dump(), ggc_usage::dump(), mem_usage::dump(), dump(), vec_usage::dump(), mem_usage::dump_footer(), vec_usage::dump_footer(), bitmap_usage::operator+(), ggc_usage::operator+(), mem_usage::operator+(), operator+(), vec_usage::operator+(), ggc_usage::operator<(), mem_usage::operator<(), ggc_usage::operator==(), mem_usage::operator==(), ggc_usage::register_overhead(), and mem_usage::register_overhead().