libsysactivity
0.6.5
|
Data Structures | |
struct | sa_memory |
Functions | |
int | sa_open_memory (void) SA_EXPORT |
int | sa_close_memory (void) SA_EXPORT |
int | sa_get_memory (struct sa_memory *dst) SA_EXPORT SA_NONNULL |
int sa_open_memory | ( | void | ) |
Prepares the resources needed for retrieving memory statistics. This function exists (and is needed) only when SA_OPEN_MEMORY is defined.
int sa_close_memory | ( | void | ) |
This function closes the resources used for retrieving memory statistics. You should call it even when there was a previous error in another function of this API. This function exists (and is needed) only when SA_CLOSE_MEMORY is defined.
int sa_get_memory | ( | struct sa_memory * | dst) |
Retrieves statistics about the usage of the memory.
dst | Where the statistics will be stored. |