Re: vsize from within C++ (UNCLASSIFIED)
- From: Yong Huang <yong321@xxxxxxxxx>
- Date: Wed, 14 Apr 2010 11:02:00 -0700 (PDT)
Is it possible for a process to obtain information about itself
(such as that provided by "top"), specifically vsize?
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 $$
redhat-list mailing list