Re: vsize from within C++ (UNCLASSIFIED)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux