This is a supporting class for MemoryUsage. More...
#include "memoryUsagePointerCounts.h"
Public Member Functions | |
MemoryUsagePointerCounts (const MemoryUsagePointerCounts ©) | |
void | add_info (MemoryInfo *info) |
Adds a pointer definition to the counter. More... | |
void | clear () |
Resets the counter to empty. More... | |
int | get_count () const |
Returns the total number of pointers in the count. More... | |
size_t | get_size () const |
Returns the total allocated size of all pointers in the count whose size is known. More... | |
bool | is_size_unknown () const |
Returns true if none of the pointers in the count have a known size, or false if at least one of them does. More... | |
bool | operator< (const MemoryUsagePointerCounts &other) const |
void | operator= (const MemoryUsagePointerCounts ©) |
void | output (std::ostream &out) const |
This is a supporting class for MemoryUsage.
It tracks the relative counts of a number of pointers of some type (or age), for use by TypeHistogram and AgeHistogram. It's not exported from the DLL, and it doesn't even exist if we're compiling NDEBUG.
Definition at line 27 of file memoryUsagePointerCounts.h.
void MemoryUsagePointerCounts::add_info | ( | MemoryInfo * | info | ) |
Adds a pointer definition to the counter.
Definition at line 21 of file memoryUsagePointerCounts.cxx.
|
inline |
Resets the counter to empty.
Definition at line 49 of file memoryUsagePointerCounts.I.
|
inline |
Returns the total number of pointers in the count.
Definition at line 77 of file memoryUsagePointerCounts.I.
|
inline |
Returns the total allocated size of all pointers in the count whose size is known.
Definition at line 69 of file memoryUsagePointerCounts.I.
|
inline |
Returns true if none of the pointers in the count have a known size, or false if at least one of them does.
Definition at line 60 of file memoryUsagePointerCounts.I.