Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!munnari!bhpese!andrew From: andrew@bhpese.bhpese.oz (Andrew Steele) Newsgroups: comp.sys.amiga.tech Subject: Re: CPU Time Summary: Try Perfmon on Fish Disk 48 Message-ID: <174@bhpese.bhpese.oz> Date: 24 Apr 89 00:23:09 GMT References: <94@snll-arpagw.UUCP> Organization: BHP Electrical Process Computing, Newcastle, Australia Lines: 25 Reply-To: In article <94@snll-arpagw.UUCP> paolucci@snll-arpagw.UUCP (Sam Paolucci) writes: >I'm writing a code which needs to know how much execution time it's using >up. Fish Disk 48 contains a program called PerfMon which will monitor a program's execution and then report on the execution times and usage of each routine in the program. This consists of two programs, the first takes the output from the MANX linker and uses the symbol table information to modify the executable so that a trap is called during entry and exit from each function. This is used after linking but prior to execution. The second part of the program runs as a separate task while your program is executing, it basically catches all the traps that are generated and times each routine (using the VBLANK clock). Whilst this may not be exactly what you are after, I found it to be well written and it was easy to understand and modify for my own uses. I Hope this helps. Andrew Steele _____ Spengat Technologies, /_ _\ c/o Electrical Computer Services, ACSnet : andrew@bhpese.oz __| |__ BHP Rod & Bar Products Division, INTERNET: andrew@bhpese.oz.au /__| |__\ Newcastle, NSW, Australia. UUCP : ...!{uunet,mcvax}!munnari!bhpese.oz!andrew