Panda3D
|
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. | |
void | clear () |
Resets the counter to empty. | |
int | get_count () const |
Returns the total number of pointers in the count. | |
size_t | get_size () const |
Returns the total allocated size of all pointers in the count whose size is known. | |
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. | |
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.
|
inline |
Definition at line 17 of file memoryUsagePointerCounts.I.
|
inline |
Definition at line 27 of file memoryUsagePointerCounts.I.
void MemoryUsagePointerCounts::add_info | ( | MemoryInfo * | info | ) |
Adds a pointer definition to the counter.
Definition at line 20 of file memoryUsagePointerCounts.cxx.
|
inline |
Resets the counter to empty.
Definition at line 48 of file memoryUsagePointerCounts.I.
|
inline |
Returns the total number of pointers in the count.
Definition at line 76 of file memoryUsagePointerCounts.I.
|
inline |
Returns the total allocated size of all pointers in the count whose size is known.
Definition at line 68 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 59 of file memoryUsagePointerCounts.I.
|
inline |
Definition at line 84 of file memoryUsagePointerCounts.I.
|
inline |
Definition at line 38 of file memoryUsagePointerCounts.I.
void MemoryUsagePointerCounts::output | ( | std::ostream & | out | ) | const |
Definition at line 36 of file memoryUsagePointerCounts.cxx.