Mail Archives: djgpp/1999/03/16/20:27:15
You got the name right.
Anyway, compile & link all your functions with -pg on the cmdline, or if
you use RHIDE goto the debug options menu and select the -pg option. Then
after compiling it, run it, try to make sure you run all the functions.
The nrun gprof.
All this stuff is in the DJGPP FAQ and or in the GCC Docs.
David Maranhao wrote:
> Hello,
>
> I am currently working on a game that uses the DJGPP compiler
> and the Allegro game programming library. I need to optimize some of
> the functions for speed. Is there a way that I can get a report on
> how much time my program spends at each function so I know where to
> optimize? I think this might be called profiling or something.
> Anyway, if this is possible could someone please tell me how or where
> to find out? Also any other techniques for optimizing / measuring the
> speed of my program would be greatly appreciated. Thanks....
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> David Maranhao (davem2 AT ultranet DOT com)
> http://www.ultranet.com/~davem2
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- Raw text -