Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!dkuug!diku!bombadil From: bombadil@diku.dk (Kristian Nielsen) Newsgroups: comp.sys.amiga.programmer Subject: Re: Amiga system usage statistics (AmigaDOS 1.3) Message-ID: <1991Mar25.161731.29334@odin.diku.dk> Date: 25 Mar 91 16:17:31 GMT References: Sender: news@odin.diku.dk (Netnews System) Organization: Department of Computer Science, U of Copenhagen Lines: 28 ben@epmooch.UUCP (Rev. Ben A. Mesander) writes: >I'd like to write a program to compute percent CPU usage and store the >usage data every so often into a file (I'd like to monitor how certain >programs I run, such as UUCP news unbatching, use my system at 4AM and >such). I'm aware of interactive tools like perfmon and Xoper, but I don't >know of any program that does what I want for the Amiga. >Does anyone know of source to an interactive monitor program that I could >look at and see how to collect this sort of data? Or could someone point >me in the right direction (I have the RKM's)? Or is there a program that >already does what I need? >I'd like to be able to set the interval used to collect the CPU usage data, >although, I suppose a fixed interval would not be useless. Xoper, including the full source code (in >100k assembler) is available on the fish series. From a brief look-over it would sem that it hooks into the exec.library Switch() system call. This, however is less than well-documented in the RMK's (probably for a good reason, but still...) BTW, I suspect that Xoper isn't that accurate in its timings... On my GVP 28Mhz 3001 it likes to report that input.device is using about 40% of CPU-time at full load (ray-tracing or similar). I really don't hope that this is the case! (and if it is, how is a stock A500/2000 to run at all??) Any comments on this? Kristian.