vsize from within C++ (UNCLASSIFIED)

Ian Lance Taylor iant@google.com
Wed Apr 14 00:27:00 GMT 2010


"Glasgow, Steven Mr CIV USA TRADOC" <Steven.Glasgow@us.army.mil>
writes:

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

This is the wrong mailing list.  The gcc-help mailing list is for
questions about the gcc compiler.  You are likely to get a better
answer if you ask on a forum for whichever operating system you are
using.

If you happen to be using GNU/Linux, then I think you can pull this
out of /proc/self/stat or /proc/self/statm, but I don't know the
format of those files.

Ian



More information about the Gcc-help mailing list