RE: vsize from within C++ (UNCLASSIFIED)
- From: "Glasgow, Steven Mr CIV USA TRADOC" <Steven.Glasgow@xxxxxxxxxxx>
- Date: Wed, 14 Apr 2010 09:06:52 -0500
Classification: UNCLASSIFIED
Caveats: NONE
Thanks Mark! I was working with /proc/self/stat and getting to the
vSize value using system() and an awk command, but was having trouble
getting the value back into a variable in my program...always getting 0
which was the value passed back from system() ... 0 = success.
I'll give this a try. My Google searches didn't come up with anything
this good.
Steve
-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of m.roth@xxxxxxxxx
Sent: Wednesday, April 14, 2010 8:17 AM
To: General Red Hat Linux discussion list
Subject: Re: vsize from within C++ (UNCLASSIFIED)
Classification: UNCLASSIFIED
Caveats: NONE
Is it possible for a process to obtain information about itself (such
as that provided by "top"), specifically vsize?
Sure. I never needed it, but a brief google for vsize linux c
programming gets
<http://stackoverflow.com/questions/669438/how-to-get-memory-usage-at-ru
n-time-in-c>
Hope that helps.
mark
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
Classification: UNCLASSIFIED
Caveats: NONE
--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
- References:
- vsize from within C++ (UNCLASSIFIED)
- From: Glasgow, Steven Mr CIV USA TRADOC
- Re: vsize from within C++ (UNCLASSIFIED)
- From: m . roth
- vsize from within C++ (UNCLASSIFIED)
- Prev by Date: Re: vsize from within C++ (UNCLASSIFIED)
- Next by Date: RE: vsize from within C++ (UNCLASSIFIED)
- Previous by thread: Re: vsize from within C++ (UNCLASSIFIED)
- Next by thread: RE: vsize from within C++ (UNCLASSIFIED)
- Index(es):
Relevant Pages
|