ROOT-Sim core
3.0.0-rc.2
A General-Purpose Multi-threaded Parallel/Distributed Simulation Library
|
Platform specific memory utilities. More...
Go to the source code of this file.
Macros | |
#define | mem_aligned_alloc(align, mem_size) aligned_alloc(align, mem_size) |
An OS-dependent function to allocate aligned memory. | |
#define | mem_aligned_free(mem) free(mem) |
An OS-dependent function to free aligned memory. | |
Functions | |
int | mem_stat_setup (void) |
Initialize the platform specific memory statistics facilities. More... | |
size_t | mem_stat_rss_max_get (void) |
Get the maximum size of the resident set since program beginning. More... | |
size_t | mem_stat_rss_current_get (void) |
Get the current size of the resident set. More... | |
Platform specific memory utilities.
This header exposes some memory related utilities such as memory statistics retrieval in a platform independent way
mem_stat_rss_current_get | ( | void | ) |
Get the current size of the resident set.
mem_stat_rss_max_get | ( | void | ) |
Get the maximum size of the resident set since program beginning.
mem_stat_setup | ( | void | ) |
Initialize the platform specific memory statistics facilities.