Skip to main content
Topic: Profiling under Linux (Read 22095 times) previous topic - next topic

Profiling under Linux

Profiling with Linux is fairly easy:
1. edit config.default to set up profiling (PROFILE = 1)
2. make clean && make
3. start simutrans and quit after a while (maybe 2 or 3 months in fast forward)
4. you find a gmon.prof (if I remember correctly) in ~/simutrans
5. use "gprof executable gmon.prof > output" to generate the profile
Parsley, sage, rosemary, and maggikraut.

Re: Profiling under Linux

Reply #1
Maybe one also want to use profiling without graphics, it might be more accurate for measuring speed of internal routines but not of the graphic: http://forum.simutrans.com/index.php?topic=2468.0