View topic - System information about a process

Page 1 of 1

System information about a process

PostPosted: Fri Jun 22, 2007 9:23 am
by dadji
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.

Re: System information about a process

PostPosted: Thu Jul 05, 2007 3:41 pm
by David Gibbs
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

Re: System information about a process

PostPosted: Tue Jul 10, 2007 4:33 pm
by dadji
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