Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2004:
[Freeciv-Dev] Re: (PR#7278) Profile of current cvs server
Home

[Freeciv-Dev] Re: (PR#7278) Profile of current cvs server

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#7278) Profile of current cvs server
From: "Arnstein Lindgard" <a-l@xxxxxxx>
Date: Wed, 21 Jan 2004 07:23:52 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7278 >

On Tue, 20 Jan 2004 09:28:57 -0800 Jason Short wrote:

> These is_normal_map_pos calls are only made when compiling with DEBUG. 
> Compiling without will give a more realistic profile.

What a goof up, I thought the only options were --disable-debug and
--enable-debug. Here's a profile with neither. First 40 lines:

Flat profile:

Each sample counts as 0.01 seconds.
  %   cumulative   self              self     total           
 time   seconds   seconds    calls  ms/call  ms/call  name    
 10.24     39.70    39.70   128057     0.31     0.48  really_generate_warmap
  5.13     59.57    19.87 565654258     0.00     0.00  map_get_tile
  3.19     71.93    12.36 207203968     0.00     0.00  base_city_map_to_map
  3.12     84.03    12.10 269330312     0.00     0.00  map_get_terrain
  2.75     94.67    10.64 10536196     0.00     0.00  pf_next
  2.28    103.49     8.82 365697387     0.00     0.00  contains_special
  2.23    112.15     8.66 277057546     0.00     0.00  is_valid_city_coords
  2.14    120.44     8.29 144052964     0.00     0.00  map_get_city
  1.63    126.75     6.31 132835221     0.00     0.00  map_is_known
  1.47    132.44     5.69  5508220     0.00     0.00  road_bonus
  1.45    138.06     5.62 123396597     0.00     0.00  tile_has_special
  1.40    143.47     5.41 185984701     0.00     0.00  get_unit_type
  1.32    148.57     5.10 80064058     0.00     0.00  normalize_map_pos
  1.26    153.45     4.88  3162311     0.00     0.01  explorer_desirable
  1.22    158.16     4.71 73022572     0.00     0.00  map_distance_vector
  1.18    162.74     4.58 128369859     0.00     0.00  unit_type_flag
  1.09    166.97     4.23   950403     0.00     0.05  real_fill_out_result
  1.08    171.16     4.19 63840320     0.00     0.00  map_get_continent
  1.06    175.25     4.09 152918112     0.00     0.00  unit_type
  1.05    179.30     4.05 148425860     0.00     0.00  is_city_center
  1.02    183.26     3.96    26291     0.15     1.90  evaluate_improvements
  1.00    187.15     3.89 73746939     0.00     0.00  get_from_mapqueue
  1.00    191.03     3.88  8040292     0.00     0.00  add_combination
  0.97    194.78     3.75 103600351     0.00     0.00  improvement_exists
  0.95    198.45     3.67 10705854     0.00     0.00  base_city_get_food_tile
  0.94    202.11     3.66 127148655     0.00     0.00  city_owner
  0.91    205.64     3.53 66296444     0.00     0.00  get_worker_city
  0.86    208.99     3.35 25974832     0.00     0.00  internal_lookup
  0.86    212.32     3.33 11171917     0.00     0.00  base_city_get_shields_tile
  0.82    215.50     3.18 73627439     0.00     0.00  add_to_mapqueue
  0.81    218.64     3.14 64439300     0.00     0.00  city_got_building
  0.79    221.69     3.05 56980242     0.00     0.00  is_non_allied_unit_tile
  0.78    224.73     3.04 31017429     0.00     0.00  city_affected_by_wonder
  0.76    227.67     2.94 10705854     0.00     0.00  base_city_get_trade_tile
  0.74    230.54     2.87      614     4.67     9.18  check_fow

..line 471:
  0.00    386.53     0.01   380927     0.00     0.00  is_normal_map_pos


Arnstein





Attachment: profile_srv_19-Jan-04.txt.bz2
Description: BZip2 compressed data


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