OpenQNX :: The QNX Community Portal

Aug 21, 2008 - 06:23 AM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 40 unlogged users and 0 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
dadji
Post subject: System information about a process  PostPosted: Jun 22, 2007 - 09:23 AM
Guest





Hello,
when you give the command "sin" in the terminal you can get system
information related to memory use of different processes.
Is there any QNX library function available that i can call in a programm,
to get such system informations (memory use) about another running process,
which PID i know.
Thanks for helping me.
Yannick D.
 
   
Reply with quote Back to top
David Gibbs
Post subject: Re: System information about a process  PostPosted: Jul 05, 2007 - 03:41 PM
Guest





dadji <ydadji@hotmail.com> wrote:
Quote:
Hello,
when you give the command "sin" in the terminal you can get system
information related to memory use of different processes.
Is there any QNX library function available that i can call in a programm,
to get such system informations (memory use) about another running process,
which PID i know.

Most of the per-process information that sin prints comes from the
data structures returned by qnx_psinfo().

For the memory, I think it walks the segment info structures returned by
qnx_psinfo(), after checking the flags to see code vs data for each segment.

-David

--
David Gibbs
QNX Training Services
dagibbs@qnx.com
 
   
Reply with quote Back to top
dadji
Post subject: Re: System information about a process  PostPosted: Jul 10, 2007 - 04:33 PM
Guest





thanks.
i will try it.
Yannick
"David Gibbs" <dagibbs@qnx.com> schrieb im Newsbeitrag
news:f6j3f9$d0t$1@inn.qnx.com...
Quote:
dadji <ydadji@hotmail.com> wrote:
Hello,
when you give the command "sin" in the terminal you can get system
information related to memory use of different processes.
Is there any QNX library function available that i can call in a
programm,
to get such system informations (memory use) about another running
process,
which PID i know.

Most of the per-process information that sin prints comes from the
data structures returned by qnx_psinfo().

For the memory, I think it walks the segment info structures returned by
qnx_psinfo(), after checking the flags to see code vs data for each
segment.

-David

--
David Gibbs
QNX Training Services
dagibbs@qnx.com
 
   
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.