Skip navigation.
Home
The QNX Community Portal

View topic - System information about a process

System information about a process

Read-only archive of qnx.newuser (Installation, configuration and administration of the QNX Neutrino or QNX Momentics environments) at inn.qnx.com

System information about a process

Postby dadji » Fri Jun 22, 2007 9:23 am

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.
dadji
 

Re: System information about a process

Postby David Gibbs » Thu Jul 05, 2007 3:41 pm

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
David Gibbs
 

Re: System information about a process

Postby dadji » Tue Jul 10, 2007 4:33 pm

thanks.
i will try it.
Yannick
"David Gibbs" <dagibbs@qnx.com> schrieb im Newsbeitrag
news:f6j3f9$d0t$1@inn.qnx.com...
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
dadji
 


Return to qnx.newuser

Who is online

Users browsing this forum: No registered users and 2 guests

cron