GCC Middle and Back End API Reference
pool_usage Class Reference

#include <alloc-pool.h>

Inheritance diagram for pool_usage:
Collaboration diagram for pool_usage:

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
 

Detailed Description

Pool allocator memory usage.   

Constructor & Destructor Documentation

◆ pool_usage() [1/2]

pool_usage::pool_usage ( )
inline

Referenced by operator+().

◆ pool_usage() [2/2]

pool_usage::pool_usage ( size_t allocated,
size_t times,
size_t peak,
size_t instances,
size_t element_size,
const char * pool_name )
inline

Member Function Documentation

◆ compare()

static int mem_usage::compare ( const void * first,
const void * second )
inlinestaticinherited

◆ dump()

◆ dump_footer() [1/2]

void mem_usage::dump_footer ( ) const
inlineinherited

◆ dump_footer() [2/2]

void pool_usage::dump_footer ( )
inline

◆ dump_header()

static void pool_usage::dump_header ( const char * name)
inlinestatic

◆ get_percent()

static float mem_usage::get_percent ( size_t nominator,
size_t denominator )
inlinestaticinherited

◆ operator+() [1/2]

mem_usage mem_usage::operator+ ( const mem_usage & second)
inlineinherited

◆ operator+() [2/2]

◆ operator<()

bool mem_usage::operator< ( const mem_usage & second) const
inlineinherited

◆ operator==()

bool mem_usage::operator== ( const mem_usage & second) const
inlineinherited

◆ print_dash_line()

static void mem_usage::print_dash_line ( size_t count = 140)
inlinestaticinherited

References count, and fputc().

Referenced by dump_tree_statistics().

◆ register_overhead()

void mem_usage::register_overhead ( size_t size)
inlineinherited

◆ release_overhead()

void mem_usage::release_overhead ( size_t size)
inlineinherited

Field Documentation

◆ m_allocated

◆ m_element_size

size_t pool_usage::m_element_size

◆ m_instances

size_t mem_usage::m_instances
inherited

◆ m_peak

◆ m_pool_name

const char* pool_usage::m_pool_name

◆ m_times


The documentation for this class was generated from the following file: