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