:: Re: [DNG] measure memory usage
Página Inicial
Delete this message
Reply to this message
Autor: Antony Stone
Data:  
Para: dng
Assunto: Re: [DNG] measure memory usage
On Friday 21 August 2020 at 22:23:16, Hendrik Boom wrote:

> Is there a way for process to ask about its own memory usage?


Assuming the process knows its own PD, try the 24th value in /proc/PID/stat

See man proc for details.


Antony.

--
I conclude that there are two ways of constructing a software design: One way
is to make it so simple that there are _obviously_ no deficiencies, and the
other way is to make it so complicated that there are no _obvious_
deficiencies.

- C A R Hoare

                                                   Please reply to the list;
                                                         please *don't* CC me.