[net.micro.amiga] Who's doing what, and for how long...

mwm@eris.berkeley.edu (Mike Meyer) (09/30/86)

The recent comments on "where's the time going," plus some comments on
how menu-bar clocks ought to behave (someone runs their's at low
priority so it doesn't get many cycles; I run mine at high priority so
it's correct no matter what else is going on) have caused me to want
to look at who's got what percentage of the CPU.

So, CBM, are there performance monitoring hooks in AmigaDOS? Can I get
total CPU time to date for a task? Better yet, how about moving
averages and the other good things?

What I'd really like is something like the 4BSD top program (if the
top k command shows up, I'd be REALLY happy :-). I'd settle for
something like vmstat or iostat. Top can be fabricated if I can get
total cpu time each task has to date. There's probably enough
information to get the first few columns of vm/io stat.

Anyone done anything along these lines? Anyone at CBM wanna provide
sample code for extracting all the time a task/process has gotten so
far? Maybe think of adding features to 1.3 for this?

	Thanx,
	<mike