The class Memory_sizer allows to measure the memory size used by the process. Both the virtual memory size and the resident size are available (the resident size does not account for swapped out memory nor for the memory which is not yet paged-in).
#include <CGAL/Memory_sizer.h>
The memory sizes are given in bytes.
|
|
| |
Default constructor.
|
|
| Returns the virtual memory size. |
|
| Returns the resident memory size. |
Accessing this information requires the use of non-portable code. Currently, there is support for Linux platforms and the Microsoft and Intel compiler on Windows. If a platform is not supported, the two member functions return 0.