14 #ifndef MEMORYUSAGEPOINTERCOUNTS_H 15 #define MEMORYUSAGEPOINTERCOUNTS_H 35 void output(std::ostream &out)
const;
44 static void output_bytes(std::ostream &out,
size_t size);
48 int _unknown_size_count;
void add_info(MemoryInfo *info)
Adds a pointer definition to the counter.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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...
int get_count() const
Returns the total number of pointers in the count.
void clear()
Resets the counter to empty.
size_t get_size() const
Returns the total allocated size of all pointers in the count whose size is known.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is a supporting class for MemoryUsage.