Re: vsize from within C++ (UNCLASSIFIED)



Is it possible for a process to obtain information about itself
(such as that provided by "top"), specifically vsize?

Steve,

I don't know C++. But isn't it a matter of open /proc/$$/stat as a regular file and read the vsize field?

If it's not limited to C++, just type the command:

$ ps -ovsz -p $$
VSZ
66228

Yong Huang





--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list