Simutrans Tools
Know our tools that can help you to create add-ons, install and customize Simutrans.

Profiling under Linux

Started by Dwachs, July 23, 2009, 07:07:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


Quote from: gerw on July 13, 2009, 08:14:39 AM
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 (if I remember correctly) in ~/simutrans
5. use "gprof executable > output" to generate the profile
Parsley, sage, rosemary, and maggikraut.


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: