GCC Middle and Back End API Reference
|
#include <mem-stats.h>
Public Member Functions | |
mem_usage () | |
mem_usage (size_t allocated, size_t times, size_t peak, size_t instances=0) | |
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 (mem_location *loc, const mem_usage &total) const |
void | dump_footer () const |
Static Public Member Functions | |
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) |
static void | dump_header (const char *name) |
Data Fields | |
size_t | m_allocated |
size_t | m_times |
size_t | m_peak |
size_t | m_instances |
Memory usage register to a memory location.
|
inline |
Referenced by operator+().
|
inline |
|
inlinestatic |
|
inline |
References free(), get_percent(), m_allocated, mem_location::m_ggc, m_peak, m_times, PRsa, SIZE_AMOUNT, and mem_location::to_string().
|
inline |
References m_allocated, m_times, PRsa, and SIZE_AMOUNT.
|
inlinestatic |
|
inlinestatic |
Referenced by bitmap_usage::dump(), ggc_usage::dump(), dump(), and pool_usage::dump().
References m_allocated, m_instances, m_peak, m_times, and mem_usage().
References m_allocated, m_peak, and m_times.
References m_allocated, m_peak, and m_times.
|
inlinestatic |
References count, and fputc().
Referenced by dump_tree_statistics().
|
inline |
References m_allocated, m_peak, and m_times.
|
inline |
References gcc_assert, and m_allocated.
size_t mem_usage::m_allocated |
Referenced by bitmap_usage::dump(), dump(), pool_usage::dump(), vec_usage::dump(), dump_footer(), pool_usage::dump_footer(), vec_usage::dump_footer(), ggc_usage::get_balance(), bitmap_usage::operator+(), ggc_usage::operator+(), operator+(), pool_usage::operator+(), vec_usage::operator+(), operator<(), operator==(), ggc_usage::register_overhead(), register_overhead(), and release_overhead().
size_t mem_usage::m_instances |
Referenced by pool_usage::dump(), pool_usage::dump_footer(), operator+(), and pool_usage::operator+().
size_t mem_usage::m_peak |
size_t mem_usage::m_times |
Referenced by bitmap_usage::dump(), ggc_usage::dump(), dump(), pool_usage::dump(), vec_usage::dump(), dump_footer(), vec_usage::dump_footer(), bitmap_usage::operator+(), ggc_usage::operator+(), operator+(), pool_usage::operator+(), vec_usage::operator+(), ggc_usage::operator<(), operator<(), ggc_usage::operator==(), operator==(), ggc_usage::register_overhead(), and register_overhead().