aboutsummaryrefslogblamecommitdiffstats
path: root/util/system/mem_info.h
blob: f303d491970f0199a7cd0677a1961d7b77e7a10c (plain) (tree)
1
2
3
4
5
6
7
8
9
            
                   
                    

                                                    
 




                   
 
                                   
 
#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);
}