[Freeciv-Dev] Re: a new freeciv profile
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
I feel the new city dialog takes longer to popup in 2.0 client,
something that profiling wont show, because it is a rare event.
Does your profiler allow you to break up calls to pf_next by caller? I
guess it will be called a lot by AI planning?!?
On Apr 11, 2005 9:22 PM, Jason Dorje Short <jdorje@xxxxxxxxxxxx> wrote:
> Attached is a profile I just made. I made it running one turn of a
> late-game savegame. It was made with oprofile and opgprof (not by using
> -pg). Since these stats are collected by the kernel (not by the
> executable itself) they're probably more accurate than a -pg profile.
>
> -jason
>
>
> Flat profile:
>
> Each sample counts as 1 samples.
> % cumulative self self total
> time samples samples calls T1/call T1/call name
> 24.19 109403.00 109403.00 pf_next
> 7.54 143521.00 34118.00
> ai_data_movemap_recalculate
> 6.74 174002.00 30481.00 is_non_allied_unit_tile
> 6.40 202929.00 28927.00 is_normal_map_pos
> 4.05 221234.00 18305.00 pq_remove
> 3.41 236666.00 15432.00 land_attack_move
> 3.25 251368.00 14702.00 danger_iterate_map
> 1.69 259011.00 7643.00 map_pos_to_tile
> 1.55 266038.00 7027.00 get_target_bonus_effects
> 1.46 272626.00 6588.00 normalize_map_pos
> 1.42 279028.00 6402.00
> ground_unit_transporter_capacity
> 1.40 285349.00 6321.00 internal_lookup
> 1.37 291546.00 6197.00 get_total_CC
> 1.31 297456.00 5910.00
> get_transporter_occupancy
> 1.28 303258.00 5802.00 next_choice
> 1.27 308986.00 5728.00 pq_insert
> 1.22 314497.00 5511.00 fill_position
> 1.17 319804.00 5307.00 invasion_funct
> 1.14 324958.00 5154.00 init_node
> 1.06 329765.00 4807.00 is_req_active
> 0.94 334025.00 4260.00 add_workers
> 0.88 338016.00 3991.00 unit_owner
> 0.84 341823.00 3807.00 hash_fval_int
> 0.83 345563.00 3740.00 sanity_check
> 0.80 349178.00 3615.00 count_buildings_in_range
> 0.66 352160.00 2982.00 pplayers_allied
> 0.58 354784.00 2624.00 get_moves_left
> 0.57 357380.00 2596.00 improvement_obsolete
> 0.55 359885.00 2505.00 improvement_exists
> 0.55 362366.00 2481.00 map_get_city
> 0.53 364771.00 2405.00 base_get_output_tile
> 0.51 367080.00 2309.00 is_my_zoc
> 0.47 369185.00 2105.00 contains_special
> 0.44 371192.00 2007.00 hash_lookup_data
> 0.44 373182.00 1990.00 same_pos
> 0.43 375110.00 1928.00 map_get_player_tile
> 0.39 376865.00 1755.00 city_got_building
> 0.39 378615.00 1750.00 city_owner
> 0.37 380284.00 1669.00 num_city_buildings
> 0.36 381910.00 1626.00 really_generate_warmap
> 0.36 383520.00 1610.00 tile_type_num_tiles
> 0.35 385119.00 1599.00 hash_fcmp_int
> 0.31 386525.00 1406.00 index_to_tile
> 0.30 387891.00 1366.00 copy_partial_solution
> 0.29 389193.00 1302.00 generic_city_refresh
> 0.29 390482.00 1289.00 get_city_bonus
> 0.25 391605.00 1123.00 base_map_distance_vector
> 0.24 392689.00 1084.00 is_capital
> 0.23 393745.00 1056.00 road_bonus
> 0.23 394780.00 1035.00 evaluate_improvements
> 0.23 395815.00 1035.00 normal_move_unit
> 0.23 396845.00 1030.00 pplayer_get_diplstate
> 0.22 397861.00 1016.00 tech_exists
> 0.22 398876.00 1015.00 map_get_continent
> 0.20 399788.00 912.00 pf_next_get_position
> 0.20 400670.00 882.00 single_airmove
> 0.19 401525.00 855.00 find_palace
> 0.18 402359.00 834.00 get_citizen_output
> 0.18 403186.00 827.00 calc_civ_score
> 0.18 404007.00 821.00 get_improvement_type
> 0.17 404777.00 770.00 tile_type_get
> 0.16 405523.00 746.00 print_partial_solution
> 0.16 406265.00 742.00 pf_destroy_map
> 0.16 406996.00 731.00 is_valid_city_coords
> 0.16 407702.00 706.00 apply_solution
> 0.15 408398.00 696.00 sea_attack_move
> 0.15 409084.00 686.00 map_get_terrain
> 0.14 409739.00 655.00 map_get_closest_city
> 0.14 410393.00 654.00 base_city_map_to_map
> 0.14 411040.00 647.00 city_can_be_built_here
> 0.14 411686.00 646.00 assign_region
> 0.14 412331.00 645.00 is_enemy_unit_tile
> 0.14 412958.00 627.00 prereqs_filled
> 0.14 413580.00 622.00 get_city_tile_bonus
> 0.13 414185.00 605.00 assert_sanity
> 0.13 414789.00 604.00 cm_query_result
> 0.13 415386.00 597.00 really_gives_vision
> 0.13 415971.00 585.00 idex_lookup_unit
> 0.13 416546.00 575.00 is_great_wonder
> 0.13 417112.00 566.00 tile_has_special
> 0.12 417657.00 545.00 native_pos_to_tile
> 0.12 418195.00 538.00 distribute
> 0.11 418711.00 516.00 game_save
> 0.11 419222.00 511.00 game_load
> 0.11 419725.00 503.00 get_player
> 0.11 420227.00 502.00 cityresult_fill
> 0.11 420726.00 499.00 amortize
> 0.11 421223.00 497.00 is_effect_disabled
> 0.10 421693.00 470.00 num_types
> 0.10 422150.00 457.00 get_effects
> 0.10 422605.00 455.00 get_activity_rate
> 0.10 423035.00 430.00 my_vsnprintf
|
|