You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 lines
506 B

#ifndef GETRSS_H
#define GETRSS_H
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/**
* Returns the peak (maximum so far) resident set size (physical
* memory use) measured in bytes, or zero if the value cannot be
* determined on this OS.
*/
size_t getPeakRSS();
/**
* Returns the current resident set size (physical memory use) measured
* in bytes, or zero if the value cannot be determined on this OS.
*/
size_t getCurrentRSS();
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif