Log Scheduling

I want to observe the order and frequency that processes are scheduled in
some software that I’m developing. sin, ps, and sac are good utilities, but
I would like to create a log of when processes are scheduled. Does anyone
have any suggestions?

Alan

By “scheduled” do you mean when they are run? I can think of
a couple approaches to this, but I don’t think that you will
find any existing utility. You could write a program that
gets the “sin time” information periodically and records
changes. If you don’t check often enough, programs could be
lost. An alternative if you are only interested in processes
started by your own applications would be to create cover
routines for spawn…() that log the event.


Previously, Alan Larson wrote in comp.os.qnx:

I want to observe the order and frequency that processes are scheduled in
some software that I’m developing. sin, ps, and sac are good utilities, but
I would like to create a log of when processes are scheduled. Does anyone
have any suggestions?

Alan
\


Mitchell Schoenbrun --------- maschoen@pobox.com

Have you looked at traceinfo? Using tracectrl, set the serverity to 6 (-s
6). traceinfo will then show you every process started by cron and when it
starts. You can capture the output of traceinfo to daily files for later
analysis, if desired.

You can add calls to Trace() to your software for additional information
about them.

“Alan Larson” <alan_lawson@wintec-inc.c om> wrote in message
news:9010ri$cqf$1@inn.qnx.com

I want to observe the order and frequency that processes are scheduled in
some software that I’m developing. sin, ps, and sac are good utilities,
but
I would like to create a log of when processes are scheduled. Does anyone
have any suggestions?

Alan

Bob Harris “If you would really take a position outside
Bath, NH the street and daily life of men, you must
bob@microprograms.com have deliberately planned your course…”
(Thoreau: Wild Fruits)

Alan Larson <alan_lawson@wintec-inc.c om> wrote:

I want to observe the order and frequency that processes are scheduled in
some software that I’m developing. sin, ps, and sac are good utilities, but
I would like to create a log of when processes are scheduled. Does anyone
have any suggestions?

Look at the kernel logging stuff – if you can join the dejaview beta,
that is an interesting tool.

Otherwise, take a look at the monitor and msgprint utilities – monitor
grabs kernel event logs, and msgprint interprets them into ASCII. Those,
along with tools like grep can get you a lot of information about what
is happening on a QNX4 system.

(Dejaview is, if I remember properly a graphical interface to the data
that monitor generates and msgprint displays.)

-David