OS/2, eCS & ArcaOS - Technical > Programming
[GCC] Unable to define getMemorySize()
Mentore:
--- Quote from: Lars on September 30, 2024, 01:57:45 pm ---
--- Quote from: Mentore on September 30, 2024, 12:19:06 pm ---Last update: yes, getrusage is available in our libc. Compiling it - will test this binary asap and - if it works as I expect - it's going to HobbesArchive.
Mentore
--- End quote ---
Seems like our getrusage does not return any memory size information, only use of time ("ru_utime", "ru_stime").
I suspect this is not what you are looking for.
As to memory: Rich Walsh has elaborated somewhere in this forum about what the various memory sizes mean and how they play together:
https://www.os2world.com/forum/index.php/topic,3445.msg41758.html#msg41758
It would be nice if we could get that added to "getrusage".
--- End quote ---
This is pretty interesting. I did a little testing of the executable and found it works (at least to some extent), but - since it still doesn't launch any graphical interface like gnuplot - I'll surely have to get back to it.
What's sure is that I need to know what actually getrusage does (or, for what's worth, GetProcessInfo from the Win32 counterpart) - the other methods in that function involve using the /proc interface which OS/2 allegedly doesn't implement.
Mentore
Navigation
[0] Message Index
[*] Previous page
Go to full version