mem_info.h 332 B

123456789101112131415161718
  1. #pragma once
  2. #include "compat.h"
  3. namespace NMemInfo {
  4. struct TMemInfo {
  5. ui64 RSS; // current RAM size of the process
  6. ui64 VMS; // current VM size of the process
  7. TMemInfo()
  8. : RSS()
  9. , VMS()
  10. {
  11. }
  12. };
  13. TMemInfo GetMemInfo(pid_t = 0);
  14. } // namespace NMemInfo