Author Topic: Profiling under Linux  (Read 6318 times)

0 Members and 1 Guest are viewing this topic.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4150
  • Total likes: 140
  • Helpful: 147
  • Languages: EN, DE, AT
Profiling under Linux
« on: July 23, 2009, 07:07:00 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 gmon.prof (if I remember correctly) in ~/simutrans
5. use "gprof executable gmon.prof > output" to generate the profile
« Last Edit: February 20, 2010, 05:46:05 PM by IgorTekton »
Parsley, sage, rosemary, and maggikraut.

Offline gerw

Re: Profiling under Linux
« Reply #1 on: July 23, 2009, 07:14:37 AM »
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