Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!ginosko!xanth!mcnc!rti!sas!toebes From: toebes@sas.UUCP (John Toebes) Newsgroups: comp.sys.amiga Subject: Re: profiler? Message-ID: <1291@sas.UUCP> Date: 26 Oct 89 12:51:44 GMT References: <5470@ucdavis.ucdavis.edu> <159@ncc1701.UUCP> Reply-To: toebes@sas.UUCP (John Toebes) Organization: SAS Institute Inc, Cary NC Lines: 18 >In article <5470@ucdavis.ucdavis.edu> rogers@iris.ucdavis.edu (Brewski Rogers) writes: > > For the program I am working on, it is critical for me to find >out how long a few functions take to execute in relation to the rest, >so I can find out what's eating up the most cpu time. Is there some sort >of program to do this? Lattice 5.x includes a profiler LPROF/LSTAT with the package to do exactly what you want. It will report down to the line number where your code is spending the most time. The 5.04 update includes an option on LPROF to control the rate of sampling. Note that the profiler also works to the source line with Asm stuff that has line number information (supported by CAPE and the Lattice Assembler). /*---------------------All standard Disclaimers apply---------------------*/ /*----Working for but not officially representing SAS or Lattice Inc.-----*/ /*----John A. Toebes, VIII usenet:...!mcnc!rti!sas!toebes-----*/ /*------------------------------------------------------------------------*/