diff options
| author | Devtools Arcadia <[email protected]> | 2022-02-07 18:08:42 +0300 |
|---|---|---|
| committer | Devtools Arcadia <[email protected]> | 2022-02-07 18:08:42 +0300 |
| commit | 1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch) | |
| tree | e26c9fed0de5d9873cce7e00bc214573dc2195b7 /util/system/mem_info.h | |
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'util/system/mem_info.h')
| -rw-r--r-- | util/system/mem_info.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/util/system/mem_info.h b/util/system/mem_info.h new file mode 100644 index 00000000000..f303d491970 --- /dev/null +++ b/util/system/mem_info.h @@ -0,0 +1,18 @@ +#pragma once + +#include "compat.h" + +namespace NMemInfo { + struct TMemInfo { + ui64 RSS; // current RAM size of the process + ui64 VMS; // current VM size of the process + + TMemInfo() + : RSS() + , VMS() + { + } + }; + + TMemInfo GetMemInfo(pid_t = 0); +} |
