Flat profile: Each sample counts as 0.01 seconds. % cumulative self self total time seconds seconds calls s/call s/call name 50.12 14.41 14.41 sendfile 10.75 17.50 3.09 read 7.51 19.66 2.16 select 7.30 21.76 2.10 __mcount_internal 3.93 22.89 1.13 109878 0.00 0.00 parse_bytes 3.23 23.82 0.93 close 2.19 24.45 0.63 mcount 1.77 24.96 0.51 124879 0.00 0.00 socket_readable 1.36 25.35 0.39 accept 1.25 25.71 0.36 2648814 0.00 0.00 event_set_is_set 0.80 25.94 0.23 151320 0.00 0.00 socket_writable 0.73 26.15 0.21 151320 0.00 0.00 do_sendfile 0.70 26.35 0.20 1 0.20 0.20 init_info 0.66 26.54 0.19 __ctype_b_loc 0.63 26.72 0.18 109878 0.00 0.00 cache_add 0.59 26.89 0.17 291201 0.00 0.00 lru_access 0.59 27.06 0.17 1 0.17 4.33 select_loop 0.56 27.22 0.16 1173087 0.00 0.00 event_set_is_readable_or_writable 0.52 27.37 0.15 strcmp 0.42 27.49 0.12 2308 0.00 0.00 process_sds 0.42 27.61 0.12 fcntl 0.38 27.72 0.11 151320 0.00 0.00 do_writable 0.35 27.82 0.10 249758 0.00 0.00 interest_set_del 0.28 27.90 0.08 1198747 0.00 0.00 event_set_is_writable 0.28 27.98 0.08 234758 0.00 0.00 interest_set_add 0.24 28.05 0.07 1450067 0.00 0.00 event_set_is_readable 0.24 28.12 0.07 109878 0.00 0.00 spec_hash 0.21 28.18 0.06 431080 0.00 0.00 set_fsm_state 0.21 28.24 0.06 276980 0.00 0.00 do_sd 0.21 28.30 0.06 109878 0.00 0.00 cache_lookup 0.21 28.36 0.06 109842 0.00 0.00 cache_lru_delete 0.17 28.41 0.05 151320 0.00 0.00 send_reply 0.17 28.46 0.05 124880 0.00 0.00 interest_set_add_readable 0.17 28.51 0.05 124879 0.00 0.00 interest_set_del_writable 0.14 28.55 0.04 109878 0.00 0.00 interest_set_add_writable 0.14 28.59 0.04 15001 0.00 0.00 do_close 0.10 28.62 0.03 109878 0.00 0.00 cache_lru_add 0.07 28.64 0.02 1188088 0.00 0.00 conns_off_if_needed 0.07 28.66 0.02 15782 0.00 0.00 socket_new_conn 0.07 28.68 0.02 15001 0.00 0.00 close_sock 0.03 28.69 0.01 109842 0.00 0.00 cache_lru_access 0.03 28.70 0.01 15001 0.00 0.00 socket_setup 0.03 28.71 0.01 do_system 0.03 28.72 0.01 fork 0.03 28.73 0.01 gettimeofday 0.03 28.74 0.01 open 0.03 28.75 0.01 write 0.00 28.75 0.00 125660 0.00 0.00 do_readable 0.00 28.75 0.00 124879 0.00 0.00 interest_set_del_readable 0.00 28.75 0.00 15001 0.00 0.00 interest_set_done 0.00 28.75 0.00 15001 0.00 0.00 should_enable_new_conns 0.00 28.75 0.00 781 0.00 0.00 do_new_connections 0.00 28.75 0.00 781 0.00 0.00 process_accept_errs 0.00 28.75 0.00 781 0.00 0.00 repeat_accept 0.00 28.75 0.00 95 0.00 0.00 printBucket 0.00 28.75 0.00 59 0.00 0.00 cache_free_element 0.00 28.75 0.00 36 0.00 0.00 cache_add_element 0.00 28.75 0.00 36 0.00 0.00 cache_get_element 0.00 28.75 0.00 10 0.00 0.00 get_index 0.00 28.75 0.00 10 0.00 0.00 get_nth_value 0.00 28.75 0.00 10 0.00 0.00 read_value 0.00 28.75 0.00 8 0.00 0.00 do_proc_info 0.00 28.75 0.00 4 0.00 0.00 interest_set_init 0.00 28.75 0.00 4 0.00 0.00 malloc_fd_set 0.00 28.75 0.00 3 0.00 0.00 printBucketHdr 0.00 28.75 0.00 3 0.00 0.00 print_mask 0.00 28.75 0.00 1 0.00 0.00 adjust_connections 0.00 28.75 0.00 1 0.00 0.00 cacheClear 0.00 28.75 0.00 1 0.00 0.00 cache_cleanup 0.00 28.75 0.00 1 0.00 0.00 cache_print_stats 0.00 28.75 0.00 1 0.00 0.00 find_closest_prime 0.00 28.75 0.00 1 0.00 0.00 fork_servers 0.00 28.75 0.00 1 0.00 0.00 hash_check_size 0.00 28.75 0.00 1 0.00 0.00 initCache 0.00 28.75 0.00 1 0.00 0.00 init_print_time 0.00 28.75 0.00 1 0.00 0.00 install_sig_handlers 0.00 28.75 0.00 1 0.00 0.00 intr_print_info 0.00 28.75 0.00 1 0.00 0.00 lru_init 0.00 28.75 0.00 1 0.00 4.53 main 0.00 28.75 0.00 1 0.00 0.00 netstat_init 0.00 28.75 0.00 1 0.00 0.00 netstat_print 0.00 28.75 0.00 1 0.00 0.00 options_print 0.00 28.75 0.00 1 0.00 0.00 options_set 0.00 28.75 0.00 1 0.00 0.00 options_valid 0.00 28.75 0.00 1 0.00 0.00 print 0.00 28.75 0.00 1 0.00 0.00 printCache 0.00 28.75 0.00 1 0.00 0.00 printFreeList 0.00 28.75 0.00 1 0.00 0.00 printLruList 0.00 28.75 0.00 1 0.00 0.00 print_all 0.00 28.75 0.00 1 0.00 0.00 print_cur_mask 0.00 28.75 0.00 1 0.00 0.00 print_extra_info 0.00 28.75 0.00 1 0.00 0.00 print_syscall_info 0.00 28.75 0.00 1 0.00 0.00 process_args 0.00 28.75 0.00 1 0.00 0.00 rusage_init 0.00 28.75 0.00 1 0.00 0.00 rusage_print 0.00 28.75 0.00 1 0.00 0.00 select_loop_init 0.00 28.75 0.00 1 0.00 0.00 server_init 0.00 28.75 0.00 1 0.00 0.00 sig_kill_handler 0.00 28.75 0.00 1 0.00 0.00 stats_print 0.00 28.75 0.00 1 0.00 0.00 stats_print_accept 0.00 28.75 0.00 1 0.00 0.00 stats_print_cache 0.00 28.75 0.00 1 0.00 0.00 stats_print_close 0.00 28.75 0.00 1 0.00 0.00 stats_print_conns_on_off 0.00 28.75 0.00 1 0.00 0.00 stats_print_netstats 0.00 28.75 0.00 1 0.00 0.00 stats_print_poll 0.00 28.75 0.00 1 0.00 0.00 stats_print_read 0.00 28.75 0.00 1 0.00 0.00 stats_print_rusage 0.00 28.75 0.00 1 0.00 0.00 stats_print_select 0.00 28.75 0.00 1 0.00 0.00 stats_print_send 0.00 28.75 0.00 1 0.00 0.00 stats_print_signals 0.00 28.75 0.00 1 0.00 0.00 stats_print_write % 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 0.04% of 26.02 seconds index % time self children called name [1] 55.4 14.41 0.00 sendfile [1] ----------------------------------------------- 0.00 4.53 1/1 __libc_start_main [3] [2] 17.4 0.00 4.53 1 main [2] 0.17 4.16 1/1 select_loop [4] 0.20 0.00 1/1 init_info [19] 0.00 0.00 1/124880 interest_set_add_readable [29] 0.00 0.00 1/291201 lru_access [21] 0.00 0.00 1/1 init_print_time [75] 0.00 0.00 1/1 options_set [82] 0.00 0.00 1/1 process_args [92] 0.00 0.00 1/1 options_print [81] 0.00 0.00 1/1 options_valid [83] 0.00 0.00 1/1 print_extra_info [90] 0.00 0.00 1/1 rusage_init [93] 0.00 0.00 1/1 netstat_init [79] 0.00 0.00 1/1 install_sig_handlers [76] 0.00 0.00 1/1 fork_servers [72] 0.00 0.00 1/1 server_init [96] 0.00 0.00 1/1 select_loop_init [95] 0.00 0.00 1/1 initCache [74] ----------------------------------------------- [3] 17.4 0.00 4.53 __libc_start_main [3] 0.00 4.53 1/1 main [2] ----------------------------------------------- 0.17 4.16 1/1 main [2] [4] 16.6 0.17 4.16 1 select_loop [4] 0.12 4.04 2308/2308 process_sds [5] ----------------------------------------------- 0.12 4.04 2308/2308 select_loop [4] [5] 16.0 0.12 4.04 2308 process_sds [5] 0.51 1.82 124879/124879 socket_readable [7] 0.23 0.55 151320/151320 socket_writable [11] 0.16 0.43 1173087/1173087 event_set_is_readable_or_writable [12] 0.06 0.08 276980/276980 do_sd [23] 0.11 0.00 151320/151320 do_writable [26] 0.00 0.06 781/781 do_new_connections [36] 0.02 0.00 1173087/1188088 conns_off_if_needed [44] 0.00 0.00 125660/125660 do_readable [51] ----------------------------------------------- [6] 11.9 3.09 0.00 read [6] ----------------------------------------------- 0.51 1.82 124879/124879 process_sds [5] [7] 9.0 0.51 1.82 124879 socket_readable [7] 1.13 0.00 109878/109878 parse_bytes [9] 0.18 0.23 109878/109878 cache_add [13] 0.04 0.04 15001/15001 do_close [30] 0.04 0.04 109878/109878 interest_set_add_writable [32] 0.06 0.00 109878/291201 lru_access [21] 0.00 0.04 109878/124879 interest_set_del_readable [41] 0.02 0.00 109878/431080 set_fsm_state [40] ----------------------------------------------- [8] 8.3 2.16 0.00 select [8] ----------------------------------------------- 1.13 0.00 109878/109878 socket_readable [7] [9] 4.3 1.13 0.00 109878 parse_bytes [9] ----------------------------------------------- [10] 3.6 0.93 0.00 close [10] ----------------------------------------------- 0.23 0.55 151320/151320 process_sds [5] [11] 3.0 0.23 0.55 151320 socket_writable [11] 0.21 0.00 151320/151320 do_sendfile [18] 0.09 0.00 151320/291201 lru_access [21] 0.04 0.04 109878/124879 interest_set_del_writable [28] 0.04 0.04 109878/124880 interest_set_add_readable [29] 0.05 0.02 151320/151320 send_reply [33] 0.02 0.00 109878/431080 set_fsm_state [40] ----------------------------------------------- 0.16 0.43 1173087/1173087 process_sds [5] [12] 2.3 0.16 0.43 1173087 event_set_is_readable_or_writable [12] 0.06 0.16 1173087/1450067 event_set_is_readable [16] 0.07 0.14 1047427/1198747 event_set_is_writable [17] ----------------------------------------------- 0.18 0.23 109878/109878 socket_readable [7] [13] 1.6 0.18 0.23 109878 cache_add [13] 0.06 0.07 109878/109878 cache_lookup [24] 0.01 0.06 109842/109842 cache_lru_access [35] 0.03 0.00 109878/109878 cache_lru_add [43] 0.00 0.00 36/36 cache_add_element [57] ----------------------------------------------- [14] 1.5 0.39 0.00 accept [14] ----------------------------------------------- 0.16 0.00 1198747/2648814 event_set_is_writable [17] 0.20 0.00 1450067/2648814 event_set_is_readable [16] [15] 1.4 0.36 0.00 2648814 event_set_is_set [15] ----------------------------------------------- 0.01 0.04 276980/1450067 do_sd [23] 0.06 0.16 1173087/1450067 event_set_is_readable_or_writable [12] [16] 1.0 0.07 0.20 1450067 event_set_is_readable [16] 0.20 0.00 1450067/2648814 event_set_is_set [15] ----------------------------------------------- 0.01 0.02 151320/1198747 do_sd [23] 0.07 0.14 1047427/1198747 event_set_is_readable_or_writable [12] [17] 0.9 0.08 0.16 1198747 event_set_is_writable [17] 0.16 0.00 1198747/2648814 event_set_is_set [15] ----------------------------------------------- 0.21 0.00 151320/151320 socket_writable [11] [18] 0.8 0.21 0.00 151320 do_sendfile [18] ----------------------------------------------- 0.20 0.00 1/1 main [2] [19] 0.8 0.20 0.00 1 init_info [19] ----------------------------------------------- [20] 0.7 0.19 0.00 __ctype_b_loc [20] ----------------------------------------------- 0.00 0.00 1/291201 main [2] 0.02 0.00 30002/291201 socket_setup [42] 0.06 0.00 109878/291201 socket_readable [7] 0.09 0.00 151320/291201 socket_writable [11] [21] 0.7 0.17 0.00 291201 lru_access [21] ----------------------------------------------- [22] 0.6 0.15 0.00 strcmp [22] ----------------------------------------------- 0.06 0.08 276980/276980 process_sds [5] [23] 0.5 0.06 0.08 276980 do_sd [23] 0.01 0.04 276980/1450067 event_set_is_readable [16] 0.01 0.02 151320/1198747 event_set_is_writable [17] ----------------------------------------------- 0.06 0.07 109878/109878 cache_add [13] [24] 0.5 0.06 0.07 109878 cache_lookup [24] 0.07 0.00 109878/109878 spec_hash [34] 0.00 0.00 36/36 cache_get_element [58] ----------------------------------------------- [25] 0.5 0.12 0.00 fcntl [25] ----------------------------------------------- 0.11 0.00 151320/151320 process_sds [5] [26] 0.4 0.11 0.00 151320 do_writable [26] ----------------------------------------------- 0.05 0.00 124879/249758 interest_set_del_readable [41] 0.05 0.00 124879/249758 interest_set_del_writable [28] [27] 0.4 0.10 0.00 249758 interest_set_del [27] ----------------------------------------------- 0.01 0.01 15001/124879 do_close [30] 0.04 0.04 109878/124879 socket_writable [11] [28] 0.4 0.05 0.05 124879 interest_set_del_writable [28] 0.05 0.00 124879/249758 interest_set_del [27] ----------------------------------------------- 0.00 0.00 1/124880 main [2] 0.01 0.01 15001/124880 socket_setup [42] 0.04 0.04 109878/124880 socket_writable [11] [29] 0.4 0.05 0.04 124880 interest_set_add_readable [29] 0.04 0.00 124880/234758 interest_set_add [31] ----------------------------------------------- 0.04 0.04 15001/15001 socket_readable [7] [30] 0.3 0.04 0.04 15001 do_close [30] 0.02 0.00 15001/15001 close_sock [45] 0.01 0.01 15001/124879 interest_set_del_writable [28] 0.00 0.01 15001/124879 interest_set_del_readable [41] 0.00 0.00 30002/431080 set_fsm_state [40] 0.00 0.00 15001/15001 interest_set_done [52] 0.00 0.00 15001/15001 should_enable_new_conns [53] ----------------------------------------------- 0.04 0.00 109878/234758 interest_set_add_writable [32] 0.04 0.00 124880/234758 interest_set_add_readable [29] [31] 0.3 0.08 0.00 234758 interest_set_add [31] ----------------------------------------------- 0.04 0.04 109878/109878 socket_readable [7] [32] 0.3 0.04 0.04 109878 interest_set_add_writable [32] 0.04 0.00 109878/234758 interest_set_add [31] ----------------------------------------------- 0.05 0.02 151320/151320 socket_writable [11] [33] 0.3 0.05 0.02 151320 send_reply [33] 0.02 0.00 151320/431080 set_fsm_state [40] ----------------------------------------------- 0.07 0.00 109878/109878 cache_lookup [24] [34] 0.3 0.07 0.00 109878 spec_hash [34] ----------------------------------------------- 0.01 0.06 109842/109842 cache_add [13] [35] 0.3 0.01 0.06 109842 cache_lru_access [35] 0.06 0.00 109842/109842 cache_lru_delete [39] ----------------------------------------------- 0.00 0.06 781/781 process_sds [5] [36] 0.2 0.00 0.06 781 do_new_connections [36] 0.00 0.06 781/781 repeat_accept [37] ----------------------------------------------- 0.00 0.06 781/781 do_new_connections [36] [37] 0.2 0.00 0.06 781 repeat_accept [37] 0.02 0.04 15782/15782 socket_new_conn [38] 0.00 0.00 15001/1188088 conns_off_if_needed [44] ----------------------------------------------- 0.02 0.04 15782/15782 repeat_accept [37] [38] 0.2 0.02 0.04 15782 socket_new_conn [38] 0.01 0.03 15001/15001 socket_setup [42] 0.00 0.00 781/781 process_accept_errs [54] ----------------------------------------------- 0.06 0.00 109842/109842 cache_lru_access [35] [39] 0.2 0.06 0.00 109842 cache_lru_delete [39] ----------------------------------------------- 0.00 0.00 30002/431080 do_close [30] 0.00 0.00 30002/431080 socket_setup [42] 0.02 0.00 109878/431080 socket_writable [11] 0.02 0.00 109878/431080 socket_readable [7] 0.02 0.00 151320/431080 send_reply [33] [40] 0.2 0.06 0.00 431080 set_fsm_state [40] ----------------------------------------------- 0.00 0.01 15001/124879 do_close [30] 0.00 0.04 109878/124879 socket_readable [7] [41] 0.2 0.00 0.05 124879 interest_set_del_readable [41] 0.05 0.00 124879/249758 interest_set_del [27] ----------------------------------------------- 0.01 0.03 15001/15001 socket_new_conn [38] [42] 0.2 0.01 0.03 15001 socket_setup [42] 0.02 0.00 30002/291201 lru_access [21] 0.01 0.01 15001/124880 interest_set_add_readable [29] 0.00 0.00 30002/431080 set_fsm_state [40] ----------------------------------------------- 0.03 0.00 109878/109878 cache_add [13] [43] 0.1 0.03 0.00 109878 cache_lru_add [43] ----------------------------------------------- 0.00 0.00 15001/1188088 repeat_accept [37] 0.02 0.00 1173087/1188088 process_sds [5] [44] 0.1 0.02 0.00 1188088 conns_off_if_needed [44] ----------------------------------------------- 0.02 0.00 15001/15001 do_close [30] [45] 0.1 0.02 0.00 15001 close_sock [45] ----------------------------------------------- [46] 0.0 0.01 0.00 do_system [46] ----------------------------------------------- [47] 0.0 0.01 0.00 fork [47] ----------------------------------------------- [48] 0.0 0.01 0.00 gettimeofday [48] ----------------------------------------------- [49] 0.0 0.01 0.00 open [49] ----------------------------------------------- [50] 0.0 0.01 0.00 write [50] ----------------------------------------------- 0.00 0.00 125660/125660 process_sds [5] [51] 0.0 0.00 0.00 125660 do_readable [51] ----------------------------------------------- 0.00 0.00 15001/15001 do_close [30] [52] 0.0 0.00 0.00 15001 interest_set_done [52] ----------------------------------------------- 0.00 0.00 15001/15001 do_close [30] [53] 0.0 0.00 0.00 15001 should_enable_new_conns [53] ----------------------------------------------- 0.00 0.00 781/781 socket_new_conn [38] [54] 0.0 0.00 0.00 781 process_accept_errs [54] ----------------------------------------------- 0.00 0.00 23/95 printFreeList [86] 0.00 0.00 36/95 printCache [85] 0.00 0.00 36/95 printLruList [87] [55] 0.0 0.00 0.00 95 printBucket [55] ----------------------------------------------- 0.00 0.00 59/59 initCache [74] [56] 0.0 0.00 0.00 59 cache_free_element [56] ----------------------------------------------- 0.00 0.00 36/36 cache_add [13] [57] 0.0 0.00 0.00 36 cache_add_element [57] ----------------------------------------------- 0.00 0.00 36/36 cache_lookup [24] [58] 0.0 0.00 0.00 36 cache_get_element [58] ----------------------------------------------- 0.00 0.00 10/10 read_value [61] [59] 0.0 0.00 0.00 10 get_index [59] ----------------------------------------------- 0.00 0.00 10/10 read_value [61] [60] 0.0 0.00 0.00 10 get_nth_value [60] ----------------------------------------------- 0.00 0.00 5/10 netstat_init [79] 0.00 0.00 5/10 netstat_print [80] [61] 0.0 0.00 0.00 10 read_value [61] 0.00 0.00 10/10 get_index [59] 0.00 0.00 10/10 get_nth_value [60] ----------------------------------------------- 0.00 0.00 8/8 print_extra_info [90] [62] 0.0 0.00 0.00 8 do_proc_info [62] ----------------------------------------------- 0.00 0.00 4/4 select_loop_init [95] [63] 0.0 0.00 0.00 4 interest_set_init [63] ----------------------------------------------- 0.00 0.00 4/4 select_loop_init [95] [64] 0.0 0.00 0.00 4 malloc_fd_set [64] ----------------------------------------------- 0.00 0.00 1/3 printCache [85] 0.00 0.00 1/3 printLruList [87] 0.00 0.00 1/3 printFreeList [86] [65] 0.0 0.00 0.00 3 printBucketHdr [65] ----------------------------------------------- 0.00 0.00 3/3 install_sig_handlers [76] [66] 0.0 0.00 0.00 3 print_mask [66] ----------------------------------------------- 0.00 0.00 1/1 process_args [92] [67] 0.0 0.00 0.00 1 adjust_connections [67] ----------------------------------------------- 0.00 0.00 1/1 sig_kill_handler [97] [68] 0.0 0.00 0.00 1 cacheClear [68] ----------------------------------------------- 0.00 0.00 1/1 sig_kill_handler [97] [69] 0.0 0.00 0.00 1 cache_cleanup [69] ----------------------------------------------- 0.00 0.00 1/1 stats_print [98] [70] 0.0 0.00 0.00 1 cache_print_stats [70] ----------------------------------------------- 0.00 0.00 1/1 initCache [74] [71] 0.0 0.00 0.00 1 find_closest_prime [71] ----------------------------------------------- 0.00 0.00 1/1 main [2] [72] 0.0 0.00 0.00 1 fork_servers [72] ----------------------------------------------- 0.00 0.00 1/1 initCache [74] [73] 0.0 0.00 0.00 1 hash_check_size [73] ----------------------------------------------- 0.00 0.00 1/1 main [2] [74] 0.0 0.00 0.00 1 initCache [74] 0.00 0.00 59/59 cache_free_element [56] 0.00 0.00 1/1 find_closest_prime [71] 0.00 0.00 1/1 hash_check_size [73] ----------------------------------------------- 0.00 0.00 1/1 main [2] [75] 0.0 0.00 0.00 1 init_print_time [75] ----------------------------------------------- 0.00 0.00 1/1 main [2] [76] 0.0 0.00 0.00 1 install_sig_handlers [76] 0.00 0.00 3/3 print_mask [66] 0.00 0.00 1/1 print_cur_mask [89] ----------------------------------------------- 0.00 0.00 1/1 print_all [88] [77] 0.0 0.00 0.00 1 intr_print_info [77] ----------------------------------------------- 0.00 0.00 1/1 server_init [96] [78] 0.0 0.00 0.00 1 lru_init [78] ----------------------------------------------- 0.00 0.00 1/1 main [2] [79] 0.0 0.00 0.00 1 netstat_init [79] 0.00 0.00 5/10 read_value [61] ----------------------------------------------- 0.00 0.00 1/1 stats_print [98] [80] 0.0 0.00 0.00 1 netstat_print [80] 0.00 0.00 5/10 read_value [61] ----------------------------------------------- 0.00 0.00 1/1 main [2] [81] 0.0 0.00 0.00 1 options_print [81] ----------------------------------------------- 0.00 0.00 1/1 main [2] [82] 0.0 0.00 0.00 1 options_set [82] ----------------------------------------------- 0.00 0.00 1/1 main [2] [83] 0.0 0.00 0.00 1 options_valid [83] ----------------------------------------------- 0.00 0.00 1/1 rusage_print [94] [84] 0.0 0.00 0.00 1 print [84] ----------------------------------------------- 0.00 0.00 1/1 print_all [88] [85] 0.0 0.00 0.00 1 printCache [85] 0.00 0.00 36/95 printBucket [55] 0.00 0.00 1/3 printBucketHdr [65] 0.00 0.00 1/1 printLruList [87] ----------------------------------------------- 0.00 0.00 1/1 print_all [88] [86] 0.0 0.00 0.00 1 printFreeList [86] 0.00 0.00 23/95 printBucket [55] 0.00 0.00 1/3 printBucketHdr [65] ----------------------------------------------- 0.00 0.00 1/1 printCache [85] [87] 0.0 0.00 0.00 1 printLruList [87] 0.00 0.00 36/95 printBucket [55] 0.00 0.00 1/3 printBucketHdr [65] ----------------------------------------------- 0.00 0.00 1/1 sig_kill_handler [97] [88] 0.0 0.00 0.00 1 print_all [88] 0.00 0.00 1/1 print_syscall_info [91] 0.00 0.00 1/1 stats_print [98] 0.00 0.00 1/1 intr_print_info [77] 0.00 0.00 1/1 printFreeList [86] 0.00 0.00 1/1 printCache [85] ----------------------------------------------- 0.00 0.00 1/1 install_sig_handlers [76] [89] 0.0 0.00 0.00 1 print_cur_mask [89] ----------------------------------------------- 0.00 0.00 1/1 main [2] [90] 0.0 0.00 0.00 1 print_extra_info [90] 0.00 0.00 8/8 do_proc_info [62] ----------------------------------------------- 0.00 0.00 1/1 print_all [88] [91] 0.0 0.00 0.00 1 print_syscall_info [91] ----------------------------------------------- 0.00 0.00 1/1 main [2] [92] 0.0 0.00 0.00 1 process_args [92] 0.00 0.00 1/1 adjust_connections [67] ----------------------------------------------- 0.00 0.00 1/1 main [2] [93] 0.0 0.00 0.00 1 rusage_init [93] ----------------------------------------------- 0.00 0.00 1/1 stats_print [98] [94] 0.0 0.00 0.00 1 rusage_print [94] 0.00 0.00 1/1 print [84] ----------------------------------------------- 0.00 0.00 1/1 main [2] [95] 0.0 0.00 0.00 1 select_loop_init [95] 0.00 0.00 4/4 interest_set_init [63] 0.00 0.00 4/4 malloc_fd_set [64] ----------------------------------------------- 0.00 0.00 1/1 main [2] [96] 0.0 0.00 0.00 1 server_init [96] 0.00 0.00 1/1 lru_init [78] ----------------------------------------------- 0.00 0.00 1/1 __restore [782] [97] 0.0 0.00 0.00 1 sig_kill_handler [97] 0.00 0.00 1/1 print_all [88] 0.00 0.00 1/1 cacheClear [68] 0.00 0.00 1/1 cache_cleanup [69] ----------------------------------------------- 0.00 0.00 1/1 print_all [88] [98] 0.0 0.00 0.00 1 stats_print [98] 0.00 0.00 1/1 stats_print_accept [99] 0.00 0.00 1/1 stats_print_write [110] 0.00 0.00 1/1 stats_print_read [105] 0.00 0.00 1/1 stats_print_close [101] 0.00 0.00 1/1 stats_print_poll [104] 0.00 0.00 1/1 stats_print_select [107] 0.00 0.00 1/1 stats_print_signals [109] 0.00 0.00 1/1 stats_print_send [108] 0.00 0.00 1/1 cache_print_stats [70] 0.00 0.00 1/1 stats_print_cache [100] 0.00 0.00 1/1 rusage_print [94] 0.00 0.00 1/1 stats_print_rusage [106] 0.00 0.00 1/1 netstat_print [80] 0.00 0.00 1/1 stats_print_netstats [103] 0.00 0.00 1/1 stats_print_conns_on_off [102] ----------------------------------------------- 0.00 0.00 1/1 stats_print [98] [99] 0.0 0.00 0.00 1 stats_print_accept [99] ----------------------------------------------- 0.00 0.00 1/1 stats_print [98] [100] 0.0 0.00 0.00 1 stats_print_cache [100] ----------------------------------------------- 0.00 0.00 1/1 stats_print [98] [101] 0.0 0.00 0.00 1 stats_print_close [101] ----------------------------------------------- 0.00 0.00 1/1 stats_print [98] [102] 0.0 0.00 0.00 1 stats_print_conns_on_off [102] ----------------------------------------------- 0.00 0.00 1/1 stats_print [98] [103] 0.0 0.00 0.00 1 stats_print_netstats [103] ----------------------------------------------- 0.00 0.00 1/1 stats_print [98] [104] 0.0 0.00 0.00 1 stats_print_poll [104] ----------------------------------------------- 0.00 0.00 1/1 stats_print [98] [105] 0.0 0.00 0.00 1 stats_print_read [105] ----------------------------------------------- 0.00 0.00 1/1 stats_print [98] [106] 0.0 0.00 0.00 1 stats_print_rusage [106] ----------------------------------------------- 0.00 0.00 1/1 stats_print [98] [107] 0.0 0.00 0.00 1 stats_print_select [107] ----------------------------------------------- 0.00 0.00 1/1 stats_print [98] [108] 0.0 0.00 0.00 1 stats_print_send [108] ----------------------------------------------- 0.00 0.00 1/1 stats_print [98] [109] 0.0 0.00 0.00 1 stats_print_signals [109] ----------------------------------------------- 0.00 0.00 1/1 stats_print [98] [110] 0.0 0.00 0.00 1 stats_print_write [110] ----------------------------------------------- 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 [20] __ctype_b_loc [73] hash_check_size [54] process_accept_errs (754) __mcount_internal [74] initCache [92] process_args [14] accept [19] init_info [5] process_sds [67] adjust_connections [75] init_print_time [6] read [68] cacheClear [76] install_sig_handlers [61] read_value [13] cache_add [31] interest_set_add (interest_set.c) [37] repeat_accept [57] cache_add_element [29] interest_set_add_readable [93] rusage_init [69] cache_cleanup [32] interest_set_add_writable [94] rusage_print [56] cache_free_element [27] interest_set_del (interest_set.c) [8] select [58] cache_get_element [41] interest_set_del_readable [4] select_loop [24] cache_lookup [28] interest_set_del_writable [95] select_loop_init [35] cache_lru_access [52] interest_set_done [33] send_reply [43] cache_lru_add [63] interest_set_init [1] sendfile [39] cache_lru_delete [77] intr_print_info [96] server_init [70] cache_print_stats [21] lru_access [40] set_fsm_state [10] close [78] lru_init [53] should_enable_new_conns [45] close_sock [2] main [97] sig_kill_handler [44] conns_off_if_needed [64] malloc_fd_set [38] socket_new_conn [30] do_close (335) mcount [7] socket_readable [36] do_new_connections [79] netstat_init [42] socket_setup [62] do_proc_info [80] netstat_print [11] socket_writable [51] do_readable [49] open [34] spec_hash [23] do_sd [81] options_print [98] stats_print [18] do_sendfile [82] options_set [99] stats_print_accept [46] do_system [83] options_valid [100] stats_print_cache [26] do_writable [9] parse_bytes [101] stats_print_close [16] event_set_is_readable [84] print [102] stats_print_conns_on_off [12] event_set_is_readable_or_writable [55] printBucket [103] stats_print_netstats [15] event_set_is_set (interest_set.c) [65] printBucketHdr [104] stats_print_poll [17] event_set_is_writable [85] printCache [105] stats_print_read [25] fcntl [86] printFreeList [106] stats_print_rusage [71] find_closest_prime [87] printLruList [107] stats_print_select [47] fork [88] print_all [108] stats_print_send [72] fork_servers [89] print_cur_mask [109] stats_print_signals [59] get_index [90] print_extra_info [110] stats_print_write [60] get_nth_value [66] print_mask [22] strcmp [48] gettimeofday [91] print_syscall_info [50] write