How can my app, written in Delphi, get the memory and CPU usage of the current process when run on Linux? PSAPI can be used under Windows, but what can I use under Linux?
Asked
Active
Viewed 252 times
1
-
3You just [read the file `/proc/stat` and parse its content](https://www.lazarusforum.de/viewtopic.php?p=107853#p107853). For [memory usage `/proc/smaps`](https://stackoverflow.com/a/1237930/4299358) may exist. – AmigoJack Nov 28 '21 at 09:39
-
Does this answer your question? [How can I measure the actual memory usage of an application or process?](https://stackoverflow.com/questions/131303/how-can-i-measure-the-actual-memory-usage-of-an-application-or-process) – mkrieger1 Nov 28 '21 at 11:51