public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* vsize from within C++ (UNCLASSIFIED)
@ 2010-04-13 19:54 Glasgow, Steven Mr CIV USA TRADOC
  2010-04-14  0:27 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Glasgow, Steven Mr CIV USA TRADOC @ 2010-04-13 19:54 UTC (permalink / raw)
  To: gcc-help

Classification: UNCLASSIFIED
Caveats: NONE

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

Thanks in advance,
Steve
Classification: UNCLASSIFIED
Caveats: NONE


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: vsize from within C++ (UNCLASSIFIED)
  2010-04-13 19:54 vsize from within C++ (UNCLASSIFIED) Glasgow, Steven Mr CIV USA TRADOC
@ 2010-04-14  0:27 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2010-04-14  0:27 UTC (permalink / raw)
  To: Glasgow, Steven Mr CIV USA TRADOC; +Cc: gcc-help

"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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-04-14  0:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-13 19:54 vsize from within C++ (UNCLASSIFIED) Glasgow, Steven Mr CIV USA TRADOC
2010-04-14  0:27 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).