Re: [fpc-pascal]Performance testing of FPC programs?
On Fri, Feb 07, 2003 at 04:56:10PM +0100, Preben Mikael Bohn wrote: Hi all, I have a relatively large FPC program that I suspect have a few bottlenecks (regarding processing speed). Are there any ways I can test how long time the program spends in the different procedures/functions? Use this bit of code in your functions/procedures or write it as a function and call it. Best regards Preben ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal Program Example5; { Program to demonstrate the GetTime function. } Uses linux, CRT, sysUtils; Var Hour, Minute, Second, msec, usec : Word; begin clrScr; repeat gotoXY(1, 1); getTime (Hour, Minute, Second, msec, usec); writeLn('Time: ' + intToStr(Hour) + ':' + intToStr(Minute) + ':' + intToStr(Second) + '.' + intToStr(msec) + '.' + intToStr(usec)); until keyPressed; end.
Re: [fpc-pascal]Performance testing of FPC programs?
Hello, On Fri, 7 Feb 2003, Preben Mikael Bohn wrote: Hi all, I have a relatively large FPC program that I suspect have a few bottlenecks (regarding processing speed). Are there any ways I can test how long time the program spends in the different procedures/functions? Use the -pg to compile your program and then use gprof to see profile information. Best regards, Adam Naumowicz == Department of Applied Logicfax. +48 (85) 745-7662 Institute of Computer Science tel. +48 (85) 745-7559 (office) University of Bialystoke-mail: [EMAIL PROTECTED] Sosnowa 64, 15-887 Bialystok, Poland http://math.uwb.edu.pl/~adamn/ == ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal]Performance testing of FPC programs?
Hi all, I have a relatively large FPC program that I suspect have a few bottlenecks (regarding processing speed). Are there any ways I can test how long time the program spends in the different procedures/functions? If the platform is suitable: read in the manual about profiling support and use the -pg switch. ___ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal