Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2003:
[Freeciv-Dev] Re: freeciv profile data
Home

[Freeciv-Dev] Re: freeciv profile data

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: freeciv profile data
From: Jason Short <jshort@xxxxxxxxxxxxxx>
Date: Sun, 19 Oct 2003 22:45:24 -0400
Reply-to: jdorje@xxxxxxxxxxxx

Jason Short wrote:
I made a few profiles of current freeciv.

I compiled freeciv with default debugging. I also added in the -pg flag to compilation (I added it to CFLAGS in configure.in). Then I ran server/civserver with the autogame.rc, and generated profile data with gprof via "gprof server/civserver > output".

All data is in http://freeciv.org/~jdorje/profile/.

The first profile is output-orig, derived from current CVS. I haven't examined it too closely, but I imagine there's much to learn. Anyone interested in optimizing things should look over it to see where the bottlenecks are.

FYI, some of the biggest CPU consumers are:

ai_manage_cities - 55% of execution time
  military_advisor_choose_build - 27%
  contemplate_new_city - 13%
ai_manage_units - 25% of execution time

these are simple to profile since they're all called in just one place. Together this is 80% of the server runtime.

jason



[Prev in Thread] Current Thread [Next in Thread]