aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/mem_info.h
blob: 3e73a3e95d0d782eedfa8b204ac9fb01e6c9e2e6 (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); 
}