[fpc-pascal] How to get info about CPU and Memory usage?

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Thu Feb 28 09:33:16 CET 2013

Graeme Geldenhuys wrote:
> On 2013-02-27 16:49, Michael Van Canneyt wrote:
>> It is better to simply parse 
>> /proc/cpuinfo
>> and
>> /proc/PID/*
> .... and hope all distros behave the same.  My experience with OnGuard
> work is that your mileage will vary.

For this sort of thing /proc/pid is the way to go, since- I'm pretty 
sure- it's what's used by  ps  so there are certain things that can't be 

The non-pid stuff, specifically things like /proc/cpuinfo, is far more 
of a problem.

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the fpc-pascal mailing list