Flat profile: Each sample counts as 0.01 seconds. % cumulative self self total time seconds seconds calls ms/call ms/call name 33.33 0.01 0.01 312 0.03 0.03 texture_load_part_sdl 33.33 0.02 0.01 176 0.06 0.06 drawstatus 33.33 0.03 0.01 176 0.06 0.11 game_draw 0.00 0.03 0.00 67276 0.00 0.00 rectcollision 0.00 0.03 0.00 55440 0.00 0.00 drawshape 0.00 0.03 0.00 22009 0.00 0.00 texture_draw_sdl 0.00 0.03 0.00 6376 0.00 0.00 shape 0.00 0.03 0.00 5280 0.00 0.00 badguy_draw 0.00 0.03 0.00 4950 0.00 0.00 badguy_action 0.00 0.03 0.00 4628 0.00 0.00 rectcollision_offset 0.00 0.03 0.00 2046 0.00 0.00 isice 0.00 0.03 0.00 2030 0.00 0.00 isbrick 0.00 0.03 0.00 1724 0.00 0.00 text_draw 0.00 0.03 0.00 1441 0.00 0.00 st_get_ticks 0.00 0.03 0.00 1016 0.00 0.00 issolid 0.00 0.03 0.00 873 0.00 0.00 timer_check 0.00 0.03 0.00 517 0.00 0.00 timer_get_left 0.00 0.03 0.00 362 0.00 0.00 timer_started 0.00 0.03 0.00 360 0.00 0.00 texture_draw_part_sdl 0.00 0.03 0.00 330 0.00 0.00 trygrabdistro 0.00 0.03 0.00 209 0.00 0.00 timer_get_gone 0.00 0.03 0.00 194 0.00 0.00 timer_init 0.00 0.03 0.00 180 0.00 0.00 updatescreen 0.00 0.03 0.00 176 0.00 0.00 player_draw 0.00 0.03 0.00 175 0.00 0.00 game_event 0.00 0.03 0.00 173 0.00 0.00 timer_start 0.00 0.03 0.00 166 0.00 0.00 playing_music 0.00 0.03 0.00 165 0.00 0.00 collision_handler 0.00 0.03 0.00 165 0.00 0.00 game_action 0.00 0.03 0.00 165 0.00 0.00 player_action 0.00 0.03 0.00 165 0.00 0.00 player_grabdistros 0.00 0.03 0.00 165 0.00 0.00 player_input 0.00 0.03 0.00 165 0.00 0.00 player_keep_in_bounds 0.00 0.03 0.00 158 0.00 0.00 timer_stop 0.00 0.03 0.00 140 0.00 0.00 text_drawf 0.00 0.03 0.00 136 0.00 0.00 texture_load_sdl 0.00 0.03 0.00 110 0.00 0.00 texture_free_sdl 0.00 0.03 0.00 107 0.00 0.00 player_handle_horizontal_input 0.00 0.03 0.00 39 0.00 0.00 flipscreen 0.00 0.03 0.00 30 0.00 0.00 add_bad_guy 0.00 0.03 0.00 30 0.00 0.00 badguy_init 0.00 0.03 0.00 29 0.00 0.00 drawmenu 0.00 0.03 0.00 19 0.00 0.00 menu_main 0.00 0.03 0.00 18 0.00 0.00 free_chunk 0.00 0.03 0.00 18 0.00 0.00 load_sound 0.00 0.03 0.00 15 0.00 0.00 faccessible 0.00 0.03 0.00 14 0.00 0.00 load_level_image 0.00 0.03 0.00 14 0.00 0.00 player_keydown_event 0.00 0.03 0.00 14 0.00 0.00 player_keyup_event 0.00 0.03 0.00 10 0.00 0.00 menu_game 0.00 0.03 0.00 7 0.00 0.00 player_handle_vertical_input 0.00 0.03 0.00 5 0.00 0.00 clearscreen 0.00 0.03 0.00 5 0.00 0.00 menu_event 0.00 0.03 0.00 4 0.00 0.00 play_sound 0.00 0.03 0.00 4 0.00 2.50 text_load 0.00 0.03 0.00 4 0.00 0.00 texture_draw_bg_sdl 0.00 0.03 0.00 3 0.00 0.00 free_music 0.00 0.03 0.00 3 0.00 0.00 initmenu 0.00 0.03 0.00 3 0.00 0.00 load_hs 0.00 0.03 0.00 3 0.00 0.00 load_song 0.00 0.03 0.00 3 0.00 0.00 opendata 0.00 0.03 0.00 2 0.00 0.00 title 0.00 0.03 0.00 1 0.00 0.00 activate_bad_guys 0.00 0.03 0.00 1 0.00 0.00 arrays_free 0.00 0.03 0.00 1 0.00 0.00 arrays_init 0.00 0.03 0.00 1 0.00 0.00 close_audio 0.00 0.03 0.00 1 0.00 20.00 gameloop 0.00 0.03 0.00 1 0.00 0.00 halt_music 0.00 0.03 0.00 1 0.00 0.00 initgame 0.00 0.03 0.00 1 0.00 0.00 intro 0.00 0.03 0.00 1 0.00 0.00 levelintro 0.00 0.03 0.00 1 0.00 0.00 loadlevel 0.00 0.03 0.00 1 0.00 0.00 loadlevelgfx 0.00 0.03 0.00 1 0.00 0.00 loadlevelsong 0.00 0.03 0.00 1 0.00 0.00 loadshared 0.00 0.03 0.00 1 0.00 0.00 open_audio 0.00 0.03 0.00 1 0.00 0.00 parseargs 0.00 0.03 0.00 1 0.00 0.00 play_current_music 0.00 0.03 0.00 1 0.00 0.00 play_music 0.00 0.03 0.00 1 0.00 0.00 player_init 0.00 0.03 0.00 1 0.00 0.00 set_defaults 0.00 0.03 0.00 1 0.00 0.00 seticon 0.00 0.03 0.00 1 0.00 0.00 st_audio_setup 0.00 0.03 0.00 1 0.00 0.00 st_directory_setup 0.00 0.03 0.00 1 0.00 10.00 st_general_setup 0.00 0.03 0.00 1 0.00 0.00 st_joystick_setup 0.00 0.03 0.00 1 0.00 0.00 st_pause_ticks_init 0.00 0.03 0.00 1 0.00 0.00 st_pause_ticks_start 0.00 0.03 0.00 1 0.00 0.00 st_shutdown 0.00 0.03 0.00 1 0.00 0.00 st_video_setup 0.00 0.03 0.00 1 0.00 0.00 st_video_setup_sdl 0.00 0.03 0.00 1 0.00 0.00 start_timers 0.00 0.03 0.00 1 0.00 0.00 texture_setup 0.00 0.03 0.00 1 0.00 0.00 unloadlevelgfx 0.00 0.03 0.00 1 0.00 0.00 unloadlevelsong 0.00 0.03 0.00 1 0.00 0.00 unloadshared % the percentage of the total running time of the time program used by this function. cumulative a running sum of the number of seconds accounted seconds for by this function and those listed above it. self the number of seconds accounted for by this seconds function alone. This is the major sort for this listing. calls the number of times this function was invoked, if this function is profiled, else blank. self the average number of milliseconds spent in this ms/call function per call, if this function is profiled, else blank. total the average number of milliseconds spent in this ms/call function and its descendents per call, if this function is profiled, else blank. name the name of the function. This is the minor sort for this listing. The index shows the location of the function in the gprof listing. If the index is in parenthesis it shows where it would appear in the gprof listing if it were to be printed. Call graph (explanation follows) granularity: each sample hit covers 4 byte(s) for 33.33% of 0.03 seconds index % time self children called name [1] 100.0 0.00 0.03 main [1] 0.00 0.02 1/1 gameloop [3] 0.00 0.01 1/1 st_general_setup [7] 0.00 0.00 2/2 title [65] 0.00 0.00 1/1 st_directory_setup [86] 0.00 0.00 1/1 parseargs [79] 0.00 0.00 1/1 st_video_setup [91] 0.00 0.00 1/1 st_audio_setup [85] 0.00 0.00 1/1 st_joystick_setup [87] 0.00 0.00 1/1 intro [72] 0.00 0.00 1/5 clearscreen [56] 0.00 0.00 1/180 updatescreen [27] 0.00 0.00 1/1 st_shutdown [90] ----------------------------------------------- 0.01 0.01 176/176 gameloop [3] [2] 66.7 0.01 0.01 176 game_draw [2] 0.01 0.00 176/176 drawstatus [5] 0.00 0.00 55440/55440 drawshape [9] 0.00 0.00 5280/5280 badguy_draw [12] 0.00 0.00 352/360 texture_draw_part_sdl [23] 0.00 0.00 176/873 timer_check [20] 0.00 0.00 176/176 player_draw [28] 0.00 0.00 10/29 drawmenu [46] ----------------------------------------------- 0.00 0.02 1/1 main [1] [3] 66.7 0.00 0.02 1 gameloop [3] 0.01 0.01 176/176 game_draw [2] 0.00 0.00 340/873 timer_check [20] 0.00 0.00 177/180 updatescreen [27] 0.00 0.00 175/1441 st_get_ticks [18] 0.00 0.00 175/175 game_event [29] 0.00 0.00 166/166 playing_music [31] 0.00 0.00 166/173 timer_start [30] 0.00 0.00 165/517 timer_get_left [21] 0.00 0.00 165/165 game_action [33] 0.00 0.00 3/194 timer_init [26] 0.00 0.00 1/5 clearscreen [56] 0.00 0.00 1/1 arrays_init [68] 0.00 0.00 1/3 initmenu [61] 0.00 0.00 1/1 initgame [71] 0.00 0.00 1/1 loadshared [77] 0.00 0.00 1/1 set_defaults [83] 0.00 0.00 1/1 loadlevel [74] 0.00 0.00 1/1 loadlevelgfx [75] 0.00 0.00 1/1 loadlevelsong [76] 0.00 0.00 1/1 activate_bad_guys [66] 0.00 0.00 1/3 load_hs [62] 0.00 0.00 1/1 player_init [82] 0.00 0.00 1/1 levelintro [73] 0.00 0.00 1/1 start_timers [93] 0.00 0.00 1/1 unloadlevelsong [96] 0.00 0.00 1/1 unloadlevelgfx [95] 0.00 0.00 1/1 unloadshared [97] 0.00 0.00 1/1 arrays_free [67] 0.00 0.00 1/1 halt_music [70] 0.00 0.00 1/1 play_current_music [80] ----------------------------------------------- 0.01 0.00 312/312 text_load [6] [4] 33.3 0.01 0.00 312 texture_load_part_sdl [4] ----------------------------------------------- 0.01 0.00 176/176 game_draw [2] [5] 33.3 0.01 0.00 176 drawstatus [5] 0.00 0.00 1584/1724 text_draw [17] 0.00 0.00 528/22009 texture_draw_sdl [10] 0.00 0.00 352/517 timer_get_left [21] ----------------------------------------------- 0.00 0.01 4/4 st_general_setup [7] [6] 33.3 0.00 0.01 4 text_load [6] 0.01 0.00 312/312 texture_load_part_sdl [4] ----------------------------------------------- 0.00 0.01 1/1 main [1] [7] 33.3 0.00 0.01 1 st_general_setup [7] 0.00 0.01 4/4 text_load [6] 0.00 0.00 1/1 seticon [84] ----------------------------------------------- 0.00 0.00 67276/67276 collision_handler [32] [8] 0.0 0.00 0.00 67276 rectcollision [8] ----------------------------------------------- 0.00 0.00 55440/55440 game_draw [2] [9] 0.0 0.00 0.00 55440 drawshape [9] 0.00 0.00 7337/22009 texture_draw_sdl [10] ----------------------------------------------- 0.00 0.00 2/22009 intro [72] 0.00 0.00 12/22009 badguy_draw [12] 0.00 0.00 13/22009 title [65] 0.00 0.00 176/22009 player_draw [28] 0.00 0.00 528/22009 drawstatus [5] 0.00 0.00 7337/22009 drawshape [9] 0.00 0.00 13941/22009 text_draw [17] [10] 0.0 0.00 0.00 22009 texture_draw_sdl [10] ----------------------------------------------- 0.00 0.00 330/6376 trygrabdistro [24] 0.00 0.00 1970/6376 issolid [19] 0.00 0.00 2030/6376 isbrick [16] 0.00 0.00 2046/6376 isice [15] [11] 0.0 0.00 0.00 6376 shape [11] ----------------------------------------------- 0.00 0.00 5280/5280 game_draw [2] [12] 0.0 0.00 0.00 5280 badguy_draw [12] 0.00 0.00 12/22009 texture_draw_sdl [10] ----------------------------------------------- 0.00 0.00 4950/4950 game_action [33] [13] 0.0 0.00 0.00 4950 badguy_action [13] 0.00 0.00 19/1016 issolid [19] ----------------------------------------------- 0.00 0.00 4628/4628 collision_handler [32] [14] 0.0 0.00 0.00 4628 rectcollision_offset [14] ----------------------------------------------- 0.00 0.00 3/2046 player_handle_horizontal_input [42] 0.00 0.00 58/2046 player_action [34] 0.00 0.00 1985/2046 issolid [19] [15] 0.0 0.00 0.00 2046 isice [15] 0.00 0.00 2046/6376 shape [11] ----------------------------------------------- 0.00 0.00 2030/2030 issolid [19] [16] 0.0 0.00 0.00 2030 isbrick [16] 0.00 0.00 2030/6376 shape [11] ----------------------------------------------- 1723 text_draw [17] 0.00 0.00 1/1724 intro [72] 0.00 0.00 3/1724 levelintro [73] 0.00 0.00 10/1724 title [65] 0.00 0.00 50/1724 menu_game [54] 0.00 0.00 76/1724 menu_main [47] 0.00 0.00 1584/1724 drawstatus [5] [17] 0.0 0.00 0.00 1724+1723 text_draw [17] 0.00 0.00 13941/22009 texture_draw_sdl [10] 1723 text_draw [17] ----------------------------------------------- 0.00 0.00 1/1441 start_timers [93] 0.00 0.00 173/1441 timer_start [30] 0.00 0.00 175/1441 gameloop [3] 0.00 0.00 209/1441 timer_get_gone [25] 0.00 0.00 366/1441 timer_check [20] 0.00 0.00 517/1441 timer_get_left [21] [18] 0.0 0.00 0.00 1441 st_get_ticks [18] ----------------------------------------------- 0.00 0.00 4/1016 player_handle_vertical_input [55] 0.00 0.00 19/1016 badguy_action [13] 0.00 0.00 993/1016 player_action [34] [19] 0.0 0.00 0.00 1016 issolid [19] 0.00 0.00 2030/2030 isbrick [16] 0.00 0.00 1985/2046 isice [15] 0.00 0.00 1970/6376 shape [11] ----------------------------------------------- 0.00 0.00 7/873 player_handle_vertical_input [55] 0.00 0.00 20/873 intro [72] 0.00 0.00 176/873 game_draw [2] 0.00 0.00 330/873 player_action [34] 0.00 0.00 340/873 gameloop [3] [20] 0.0 0.00 0.00 873 timer_check [20] 0.00 0.00 366/1441 st_get_ticks [18] ----------------------------------------------- 0.00 0.00 165/517 gameloop [3] 0.00 0.00 352/517 drawstatus [5] [21] 0.0 0.00 0.00 517 timer_get_left [21] 0.00 0.00 517/1441 st_get_ticks [18] ----------------------------------------------- 0.00 0.00 3/362 player_handle_horizontal_input [42] 0.00 0.00 7/362 player_handle_vertical_input [55] 0.00 0.00 352/362 player_draw [28] [22] 0.0 0.00 0.00 362 timer_started [22] ----------------------------------------------- 0.00 0.00 8/360 title [65] 0.00 0.00 352/360 game_draw [2] [23] 0.0 0.00 0.00 360 texture_draw_part_sdl [23] ----------------------------------------------- 0.00 0.00 330/330 player_grabdistros [35] [24] 0.0 0.00 0.00 330 trygrabdistro [24] 0.00 0.00 330/6376 shape [11] ----------------------------------------------- 0.00 0.00 209/209 intro [72] [25] 0.0 0.00 0.00 209 timer_get_gone [25] 0.00 0.00 209/1441 st_get_ticks [18] ----------------------------------------------- 0.00 0.00 1/194 set_defaults [83] 0.00 0.00 2/194 player_init [82] 0.00 0.00 3/194 gameloop [3] 0.00 0.00 30/194 add_bad_guy [44] 0.00 0.00 158/194 player_input [36] [26] 0.0 0.00 0.00 194 timer_init [26] ----------------------------------------------- 0.00 0.00 1/180 main [1] 0.00 0.00 2/180 title [65] 0.00 0.00 177/180 gameloop [3] [27] 0.0 0.00 0.00 180 updatescreen [27] ----------------------------------------------- 0.00 0.00 176/176 game_draw [2] [28] 0.0 0.00 0.00 176 player_draw [28] 0.00 0.00 352/362 timer_started [22] 0.00 0.00 176/22009 texture_draw_sdl [10] ----------------------------------------------- 0.00 0.00 175/175 gameloop [3] [29] 0.0 0.00 0.00 175 game_event [29] 0.00 0.00 14/14 player_keydown_event [52] 0.00 0.00 14/14 player_keyup_event [53] 0.00 0.00 2/5 menu_event [57] 0.00 0.00 1/1 st_pause_ticks_start [89] ----------------------------------------------- 0.00 0.00 1/173 intro [72] 0.00 0.00 1/173 player_action [34] 0.00 0.00 1/173 start_timers [93] 0.00 0.00 4/173 player_handle_vertical_input [55] 0.00 0.00 166/173 gameloop [3] [30] 0.0 0.00 0.00 173 timer_start [30] 0.00 0.00 173/1441 st_get_ticks [18] ----------------------------------------------- 0.00 0.00 166/166 gameloop [3] [31] 0.0 0.00 0.00 166 playing_music [31] ----------------------------------------------- 0.00 0.00 165/165 game_action [33] [32] 0.0 0.00 0.00 165 collision_handler [32] 0.00 0.00 67276/67276 rectcollision [8] 0.00 0.00 4628/4628 rectcollision_offset [14] ----------------------------------------------- 0.00 0.00 165/165 gameloop [3] [33] 0.0 0.00 0.00 165 game_action [33] 0.00 0.00 4950/4950 badguy_action [13] 0.00 0.00 165/165 player_action [34] 0.00 0.00 165/165 collision_handler [32] ----------------------------------------------- 0.00 0.00 165/165 game_action [33] [34] 0.0 0.00 0.00 165 player_action [34] 0.00 0.00 993/1016 issolid [19] 0.00 0.00 330/873 timer_check [20] 0.00 0.00 165/165 player_input [36] 0.00 0.00 165/165 player_keep_in_bounds [37] 0.00 0.00 165/165 player_grabdistros [35] 0.00 0.00 58/2046 isice [15] 0.00 0.00 1/173 timer_start [30] ----------------------------------------------- 0.00 0.00 165/165 player_action [34] [35] 0.0 0.00 0.00 165 player_grabdistros [35] 0.00 0.00 330/330 trygrabdistro [24] ----------------------------------------------- 0.00 0.00 165/165 player_action [34] [36] 0.0 0.00 0.00 165 player_input [36] 0.00 0.00 158/194 timer_init [26] 0.00 0.00 158/158 timer_stop [38] 0.00 0.00 107/107 player_handle_horizontal_input [42] 0.00 0.00 7/7 player_handle_vertical_input [55] ----------------------------------------------- 0.00 0.00 165/165 player_action [34] [37] 0.0 0.00 0.00 165 player_keep_in_bounds [37] ----------------------------------------------- 0.00 0.00 158/158 player_input [36] [38] 0.0 0.00 0.00 158 timer_stop [38] ----------------------------------------------- 0.00 0.00 1/140 intro [72] 0.00 0.00 3/140 levelintro [73] 0.00 0.00 10/140 title [65] 0.00 0.00 50/140 menu_game [54] 0.00 0.00 76/140 menu_main [47] [39] 0.0 0.00 0.00 140 text_drawf [39] ----------------------------------------------- 0.00 0.00 1/136 loadlevelgfx [75] 0.00 0.00 6/136 title [65] 0.00 0.00 12/136 intro [72] 0.00 0.00 14/136 load_level_image [51] 0.00 0.00 103/136 loadshared [77] [40] 0.0 0.00 0.00 136 texture_load_sdl [40] ----------------------------------------------- 0.00 0.00 6/110 title [65] 0.00 0.00 12/110 intro [72] 0.00 0.00 15/110 unloadlevelgfx [95] 0.00 0.00 77/110 unloadshared [97] [41] 0.0 0.00 0.00 110 texture_free_sdl [41] ----------------------------------------------- 0.00 0.00 107/107 player_input [36] [42] 0.0 0.00 0.00 107 player_handle_horizontal_input [42] 0.00 0.00 3/2046 isice [15] 0.00 0.00 3/362 timer_started [22] ----------------------------------------------- 0.00 0.00 1/39 levelintro [73] 0.00 0.00 19/39 intro [72] 0.00 0.00 19/39 title [65] [43] 0.0 0.00 0.00 39 flipscreen [43] ----------------------------------------------- 0.00 0.00 30/30 activate_bad_guys [66] [44] 0.0 0.00 0.00 30 add_bad_guy [44] 0.00 0.00 30/194 timer_init [26] 0.00 0.00 30/30 badguy_init [45] ----------------------------------------------- 0.00 0.00 30/30 add_bad_guy [44] [45] 0.0 0.00 0.00 30 badguy_init [45] ----------------------------------------------- 0.00 0.00 10/29 game_draw [2] 0.00 0.00 19/29 title [65] [46] 0.0 0.00 0.00 29 drawmenu [46] 0.00 0.00 19/19 menu_main [47] 0.00 0.00 10/10 menu_game [54] ----------------------------------------------- 0.00 0.00 19/19 drawmenu [46] [47] 0.0 0.00 0.00 19 menu_main [47] 0.00 0.00 76/1724 text_draw [17] 0.00 0.00 76/140 text_drawf [39] ----------------------------------------------- 0.00 0.00 18/18 unloadshared [97] [48] 0.0 0.00 0.00 18 free_chunk [48] ----------------------------------------------- 0.00 0.00 18/18 loadshared [77] [49] 0.0 0.00 0.00 18 load_sound [49] ----------------------------------------------- 0.00 0.00 1/15 loadlevelgfx [75] 0.00 0.00 14/15 load_level_image [51] [50] 0.0 0.00 0.00 15 faccessible [50] ----------------------------------------------- 0.00 0.00 14/14 loadlevelgfx [75] [51] 0.0 0.00 0.00 14 load_level_image [51] 0.00 0.00 14/15 faccessible [50] 0.00 0.00 14/136 texture_load_sdl [40] ----------------------------------------------- 0.00 0.00 14/14 game_event [29] [52] 0.0 0.00 0.00 14 player_keydown_event [52] ----------------------------------------------- 0.00 0.00 14/14 game_event [29] [53] 0.0 0.00 0.00 14 player_keyup_event [53] ----------------------------------------------- 0.00 0.00 10/10 drawmenu [46] [54] 0.0 0.00 0.00 10 menu_game [54] 0.00 0.00 50/1724 text_draw [17] 0.00 0.00 50/140 text_drawf [39] ----------------------------------------------- 0.00 0.00 7/7 player_input [36] [55] 0.0 0.00 0.00 7 player_handle_vertical_input [55] 0.00 0.00 7/362 timer_started [22] 0.00 0.00 7/873 timer_check [20] 0.00 0.00 4/173 timer_start [30] 0.00 0.00 4/1016 issolid [19] 0.00 0.00 4/4 play_sound [58] ----------------------------------------------- 0.00 0.00 1/5 main [1] 0.00 0.00 1/5 levelintro [73] 0.00 0.00 1/5 gameloop [3] 0.00 0.00 2/5 title [65] [56] 0.0 0.00 0.00 5 clearscreen [56] ----------------------------------------------- 0.00 0.00 2/5 game_event [29] 0.00 0.00 3/5 title [65] [57] 0.0 0.00 0.00 5 menu_event [57] ----------------------------------------------- 0.00 0.00 4/4 player_handle_vertical_input [55] [58] 0.0 0.00 0.00 4 play_sound [58] ----------------------------------------------- 0.00 0.00 1/4 intro [72] 0.00 0.00 3/4 title [65] [59] 0.0 0.00 0.00 4 texture_draw_bg_sdl [59] ----------------------------------------------- 0.00 0.00 1/3 unloadshared [97] 0.00 0.00 2/3 unloadlevelsong [96] [60] 0.0 0.00 0.00 3 free_music [60] ----------------------------------------------- 0.00 0.00 1/3 gameloop [3] 0.00 0.00 2/3 title [65] [61] 0.0 0.00 0.00 3 initmenu [61] ----------------------------------------------- 0.00 0.00 1/3 gameloop [3] 0.00 0.00 2/3 title [65] [62] 0.0 0.00 0.00 3 load_hs [62] 0.00 0.00 3/3 opendata [64] ----------------------------------------------- 0.00 0.00 1/3 loadshared [77] 0.00 0.00 2/3 loadlevelsong [76] [63] 0.0 0.00 0.00 3 load_song [63] ----------------------------------------------- 0.00 0.00 3/3 load_hs [62] [64] 0.0 0.00 0.00 3 opendata [64] ----------------------------------------------- 0.00 0.00 2/2 main [1] [65] 0.0 0.00 0.00 2 title [65] 0.00 0.00 19/39 flipscreen [43] 0.00 0.00 19/29 drawmenu [46] 0.00 0.00 13/22009 texture_draw_sdl [10] 0.00 0.00 10/1724 text_draw [17] 0.00 0.00 10/140 text_drawf [39] 0.00 0.00 8/360 texture_draw_part_sdl [23] 0.00 0.00 6/136 texture_load_sdl [40] 0.00 0.00 6/110 texture_free_sdl [41] 0.00 0.00 3/5 menu_event [57] 0.00 0.00 3/4 texture_draw_bg_sdl [59] 0.00 0.00 2/3 initmenu [61] 0.00 0.00 2/180 updatescreen [27] 0.00 0.00 2/5 clearscreen [56] 0.00 0.00 2/3 load_hs [62] ----------------------------------------------- 0.00 0.00 1/1 gameloop [3] [66] 0.0 0.00 0.00 1 activate_bad_guys [66] 0.00 0.00 30/30 add_bad_guy [44] ----------------------------------------------- 0.00 0.00 1/1 gameloop [3] [67] 0.0 0.00 0.00 1 arrays_free [67] ----------------------------------------------- 0.00 0.00 1/1 gameloop [3] [68] 0.0 0.00 0.00 1 arrays_init [68] ----------------------------------------------- 0.00 0.00 1/1 st_shutdown [90] [69] 0.0 0.00 0.00 1 close_audio [69] ----------------------------------------------- 0.00 0.00 1/1 gameloop [3] [70] 0.0 0.00 0.00 1 halt_music [70] ----------------------------------------------- 0.00 0.00 1/1 gameloop [3] [71] 0.0 0.00 0.00 1 initgame [71] ----------------------------------------------- 0.00 0.00 1/1 main [1] [72] 0.0 0.00 0.00 1 intro [72] 0.00 0.00 209/209 timer_get_gone [25] 0.00 0.00 20/873 timer_check [20] 0.00 0.00 19/39 flipscreen [43] 0.00 0.00 12/136 texture_load_sdl [40] 0.00 0.00 12/110 texture_free_sdl [41] 0.00 0.00 2/22009 texture_draw_sdl [10] 0.00 0.00 1/4 texture_draw_bg_sdl [59] 0.00 0.00 1/173 timer_start [30] 0.00 0.00 1/1724 text_draw [17] 0.00 0.00 1/140 text_drawf [39] ----------------------------------------------- 0.00 0.00 1/1 gameloop [3] [73] 0.0 0.00 0.00 1 levelintro [73] 0.00 0.00 3/1724 text_draw [17] 0.00 0.00 3/140 text_drawf [39] 0.00 0.00 1/5 clearscreen [56] 0.00 0.00 1/39 flipscreen [43] ----------------------------------------------- 0.00 0.00 1/1 gameloop [3] [74] 0.0 0.00 0.00 1 loadlevel [74] ----------------------------------------------- 0.00 0.00 1/1 gameloop [3] [75] 0.0 0.00 0.00 1 loadlevelgfx [75] 0.00 0.00 14/14 load_level_image [51] 0.00 0.00 1/15 faccessible [50] 0.00 0.00 1/136 texture_load_sdl [40] ----------------------------------------------- 0.00 0.00 1/1 gameloop [3] [76] 0.0 0.00 0.00 1 loadlevelsong [76] 0.00 0.00 2/3 load_song [63] ----------------------------------------------- 0.00 0.00 1/1 gameloop [3] [77] 0.0 0.00 0.00 1 loadshared [77] 0.00 0.00 103/136 texture_load_sdl [40] 0.00 0.00 18/18 load_sound [49] 0.00 0.00 1/3 load_song [63] ----------------------------------------------- 0.00 0.00 1/1 st_audio_setup [85] [78] 0.0 0.00 0.00 1 open_audio [78] ----------------------------------------------- 0.00 0.00 1/1 main [1] [79] 0.0 0.00 0.00 1 parseargs [79] ----------------------------------------------- 0.00 0.00 1/1 gameloop [3] [80] 0.0 0.00 0.00 1 play_current_music [80] 0.00 0.00 1/1 play_music [81] ----------------------------------------------- 0.00 0.00 1/1 play_current_music [80] [81] 0.0 0.00 0.00 1 play_music [81] ----------------------------------------------- 0.00 0.00 1/1 gameloop [3] [82] 0.0 0.00 0.00 1 player_init [82] 0.00 0.00 2/194 timer_init [26] ----------------------------------------------- 0.00 0.00 1/1 gameloop [3] [83] 0.0 0.00 0.00 1 set_defaults [83] 0.00 0.00 1/194 timer_init [26] ----------------------------------------------- 0.00 0.00 1/1 st_general_setup [7] [84] 0.0 0.00 0.00 1 seticon [84] ----------------------------------------------- 0.00 0.00 1/1 main [1] [85] 0.0 0.00 0.00 1 st_audio_setup [85] 0.00 0.00 1/1 open_audio [78] ----------------------------------------------- 0.00 0.00 1/1 main [1] [86] 0.0 0.00 0.00 1 st_directory_setup [86] ----------------------------------------------- 0.00 0.00 1/1 main [1] [87] 0.0 0.00 0.00 1 st_joystick_setup [87] ----------------------------------------------- 0.00 0.00 1/1 start_timers [93] [88] 0.0 0.00 0.00 1 st_pause_ticks_init [88] ----------------------------------------------- 0.00 0.00 1/1 game_event [29] [89] 0.0 0.00 0.00 1 st_pause_ticks_start [89] ----------------------------------------------- 0.00 0.00 1/1 main [1] [90] 0.0 0.00 0.00 1 st_shutdown [90] 0.00 0.00 1/1 close_audio [69] ----------------------------------------------- 0.00 0.00 1/1 main [1] [91] 0.0 0.00 0.00 1 st_video_setup [91] 0.00 0.00 1/1 texture_setup [94] 0.00 0.00 1/1 st_video_setup_sdl [92] ----------------------------------------------- 0.00 0.00 1/1 st_video_setup [91] [92] 0.0 0.00 0.00 1 st_video_setup_sdl [92] ----------------------------------------------- 0.00 0.00 1/1 gameloop [3] [93] 0.0 0.00 0.00 1 start_timers [93] 0.00 0.00 1/173 timer_start [30] 0.00 0.00 1/1 st_pause_ticks_init [88] 0.00 0.00 1/1441 st_get_ticks [18] ----------------------------------------------- 0.00 0.00 1/1 st_video_setup [91] [94] 0.0 0.00 0.00 1 texture_setup [94] ----------------------------------------------- 0.00 0.00 1/1 gameloop [3] [95] 0.0 0.00 0.00 1 unloadlevelgfx [95] 0.00 0.00 15/110 texture_free_sdl [41] ----------------------------------------------- 0.00 0.00 1/1 gameloop [3] [96] 0.0 0.00 0.00 1 unloadlevelsong [96] 0.00 0.00 2/3 free_music [60] ----------------------------------------------- 0.00 0.00 1/1 gameloop [3] [97] 0.0 0.00 0.00 1 unloadshared [97] 0.00 0.00 77/110 texture_free_sdl [41] 0.00 0.00 18/18 free_chunk [48] 0.00 0.00 1/3 free_music [60] ----------------------------------------------- This table describes the call tree of the program, and was sorted by the total amount of time spent in each function and its children. Each entry in this table consists of several lines. The line with the index number at the left hand margin lists the current function. The lines above it list the functions that called this function, and the lines below it list the functions this one called. This line lists: index A unique number given to each element of the table. Index numbers are sorted numerically. The index number is printed next to every function name so it is easier to look up where the function in the table. % time This is the percentage of the `total' time that was spent in this function and its children. Note that due to different viewpoints, functions excluded by options, etc, these numbers will NOT add up to 100%. self This is the total amount of time spent in this function. children This is the total amount of time propagated into this function by its children. called This is the number of times the function was called. If the function called itself recursively, the number only includes non-recursive calls, and is followed by a `+' and the number of recursive calls. name The name of the current function. The index number is printed after it. If the function is a member of a cycle, the cycle number is printed between the function's name and the index number. For the function's parents, the fields have the following meanings: self This is the amount of time that was propagated directly from the function into this parent. children This is the amount of time that was propagated from the function's children into this parent. called This is the number of times this parent called the function `/' the total number of times the function was called. Recursive calls to the function are not included in the number after the `/'. name This is the name of the parent. The parent's index number is printed after it. If the parent is a member of a cycle, the cycle number is printed between the name and the index number. If the parents of the function cannot be determined, the word `' is printed in the `name' field, and all the other fields are blank. For the function's children, the fields have the following meanings: self This is the amount of time that was propagated directly from the child into the function. children This is the amount of time that was propagated from the child's children to the function. called This is the number of times the function called this child `/' the total number of times the child was called. Recursive calls by the child are not listed in the number after the `/'. name This is the name of the child. The child's index number is printed after it. If the child is a member of a cycle, the cycle number is printed between the name and the index number. If there are any cycles (circles) in the call graph, there is an entry for the cycle-as-a-whole. This entry shows who called the cycle (as parents) and the members of the cycle (as children.) The `+' recursive calls entry shows the number of function calls that were internal to the cycle, and the calls entry for each member shows, for that member, how many times it was called from other members of the cycle. Index by function name [66] activate_bad_guys [49] load_sound [7] st_general_setup [44] add_bad_guy [74] loadlevel [18] st_get_ticks [67] arrays_free [75] loadlevelgfx [87] st_joystick_setup [68] arrays_init [76] loadlevelsong [88] st_pause_ticks_init [13] badguy_action [77] loadshared [89] st_pause_ticks_start [12] badguy_draw [57] menu_event [90] st_shutdown [45] badguy_init [54] menu_game [91] st_video_setup [56] clearscreen [47] menu_main [92] st_video_setup_sdl [69] close_audio [78] open_audio [93] start_timers [32] collision_handler [64] opendata [17] text_draw [46] drawmenu [79] parseargs [39] text_drawf [9] drawshape [80] play_current_music [6] text_load [5] drawstatus [81] play_music [59] texture_draw_bg_sdl [50] faccessible [58] play_sound [23] texture_draw_part_sdl [43] flipscreen [34] player_action [10] texture_draw_sdl [48] free_chunk [28] player_draw [41] texture_free_sdl [60] free_music [35] player_grabdistros [4] texture_load_part_sdl [33] game_action [42] player_handle_horizontal_input [40] texture_load_sdl [2] game_draw [55] player_handle_vertical_input [94] texture_setup [29] game_event [82] player_init [20] timer_check [3] gameloop [36] player_input [25] timer_get_gone [70] halt_music [37] player_keep_in_bounds [21] timer_get_left [71] initgame [52] player_keydown_event [26] timer_init [61] initmenu [53] player_keyup_event [30] timer_start [72] intro [31] playing_music [22] timer_started [16] isbrick [8] rectcollision [38] timer_stop [15] isice [14] rectcollision_offset [65] title [19] issolid [83] set_defaults [24] trygrabdistro [73] levelintro [84] seticon [95] unloadlevelgfx [62] load_hs [11] shape [96] unloadlevelsong [51] load_level_image [85] st_audio_setup [97] unloadshared [63] load_song [86] st_directory_setup [27] updatescreen