Namespaces | Functions

cmtkMemory.cxx File Reference

Go to the source code of this file.

Namespaces

namespace  cmtk
namespace  cmtk::Memory
 

Memory-related helper functions.


Functions

size_t cmtk::Memory::GetNextPowerOfTwo (size_t k)
 Utility function: get next power of two.
Functions for tracing memory allocation and de-allocation.

These functions can be used to watch the amount of memory allocated and freed by other functions.

Memory holes can be identified and located.

size_t cmtk::Memory::Used ()
 Get amount of memory used.
void cmtk::Memory::Info (const char *msg=NULL)
 Print memory usage.
void cmtk::Memory::Diff (const size_t before, const char *msg)
 Print difference of memory usage.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines