I need to show in my program the consumption of RAM and CPU of the system (Linux). […] My question is if we have something already prepared in the RTL / FCL.Linux.sysInfo (https://www.freepascal.org/docs-html/rtl/linux/sysinfo.html) enough?
I would also like to know how to show the consumption of RAM and CPU of the program itself (not debug, but release), also in Linux.That’s getrusage(2) (https://man7.org/linux/man-pages/man2/getrusage.2.html), but there’s no wrapper for that [except on BSD], so you’ll need to do it yourself (use the sysCall unit).
sysinfo seems not unix but just linux?