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?
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
- Prev by Date: RE: vsize from within C++ (UNCLASSIFIED)
- Next by Date: System config display
- Previous by thread: RE: vsize from within C++ (UNCLASSIFIED)
- Next by thread: System config display
- Index(es):