🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #12358

Re: CPU Time

#12358
From: Andrew Steele
Date: Mon, 24 Apr 1989 00:23
25 lines
1762 bytes
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
Technical Details
Message-ID: <174@bhpese.bhpese.oz>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!munnari!bhpese!andrew
References: <94@snll-arpagw.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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