aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/mem_info.h
blob: b23dbb0d717f9fa359071d7ec0de171402fed6d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);
}