vsize from within C++ (UNCLASSIFIED)

m.roth at 5-cent.us m.roth at 5-cent.us
Wed Apr 14 13:17:24 UTC 2010


> 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-run-time-in-c>

Hope that helps.

        mark




More information about the redhat-list mailing list