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

  1. #ifndef GETRSS_H
  2. #define GETRSS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif /* __cplusplus */
  6. /**
  7. * Returns the peak (maximum so far) resident set size (physical
  8. * memory use) measured in bytes, or zero if the value cannot be
  9. * determined on this OS.
  10. */
  11. size_t getPeakRSS();
  12. /**
  13. * Returns the current resident set size (physical memory use) measured
  14. * in bytes, or zero if the value cannot be determined on this OS.
  15. */
  16. size_t getCurrentRSS();
  17. #ifdef __cplusplus
  18. }
  19. #endif /* __cplusplus */
  20. #endif