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