Flat profile: Each sample counts as 0.01 seconds. % cumulative self self total time seconds seconds calls s/call s/call name 43.42 12.11 12.11 sendfile 9.72 14.82 2.71 read 9.29 17.41 2.59 setsockopt 7.24 19.43 2.02 write 5.59 20.99 1.56 __mcount_internal 4.45 22.23 1.24 109878 0.00 0.00 parse_bytes 3.48 23.20 0.97 close 2.65 23.94 0.74 select 1.97 24.49 0.55 mcount 1.43 24.89 0.40 124879 0.00 0.00 socket_readable 1.04 25.18 0.29 accept 0.90 25.43 0.25 149345 0.00 0.00 do_sendfile 0.86 25.67 0.24 1120054 0.00 0.00 event_set_is_set 0.72 25.87 0.20 1248 0.00 0.00 process_sds 0.72 26.07 0.20 1 0.20 0.20 init_info 0.65 26.25 0.18 109878 0.00 0.00 cache_add 0.65 26.43 0.18 1 0.18 3.75 select_loop 0.57 26.59 0.16 __ctype_b_loc 0.54 26.74 0.15 149345 0.00 0.00 socket_writable 0.39 26.85 0.11 410682 0.00 0.00 event_set_is_readable_or_writable 0.36 26.95 0.10 425683 0.00 0.00 conns_off_if_needed 0.32 27.04 0.09 fcntl 0.25 27.11 0.07 289226 0.00 0.00 lru_access 0.25 27.18 0.07 274823 0.00 0.00 do_sd 0.25 27.25 0.07 109878 0.00 0.00 cache_lru_add 0.25 27.32 0.07 strcmp 0.22 27.38 0.06 109878 0.00 0.00 cache_lookup 0.22 27.44 0.06 109842 0.00 0.00 cache_lru_delete 0.22 27.50 0.06 15001 0.00 0.00 socket_setup 0.18 27.55 0.05 685505 0.00 0.00 event_set_is_readable 0.18 27.60 0.05 429105 0.00 0.00 set_fsm_state 0.11 27.63 0.03 249758 0.00 0.00 interest_set_del 0.11 27.66 0.03 234758 0.00 0.00 interest_set_add 0.11 27.69 0.03 __errno_location 0.11 27.72 0.03 fork 0.07 27.74 0.02 434549 0.00 0.00 event_set_is_writable 0.07 27.76 0.02 149345 0.00 0.00 do_writable 0.07 27.78 0.02 124880 0.00 0.00 interest_set_add_readable 0.07 27.80 0.02 124879 0.00 0.00 interest_set_del_writable 0.07 27.82 0.02 109878 0.00 0.00 spec_hash 0.07 27.84 0.02 15001 0.00 0.00 do_close 0.04 27.85 0.01 149345 0.00 0.00 send_reply 0.04 27.86 0.01 124879 0.00 0.00 interest_set_del_readable 0.04 27.87 0.01 15001 0.00 0.00 close_sock 0.04 27.88 0.01 fflush 0.04 27.89 0.01 gettimeofday 0.00 27.89 0.00 125478 0.00 0.00 do_readable 0.00 27.89 0.00 109878 0.00 0.00 interest_set_add_writable 0.00 27.89 0.00 109842 0.00 0.00 cache_lru_access 0.00 27.89 0.00 15600 0.00 0.00 socket_new_conn 0.00 27.89 0.00 15001 0.00 0.00 interest_set_done 0.00 27.89 0.00 15001 0.00 0.00 should_enable_new_conns 0.00 27.89 0.00 599 0.00 0.00 do_new_connections 0.00 27.89 0.00 599 0.00 0.00 process_accept_errs 0.00 27.89 0.00 599 0.00 0.00 repeat_accept 0.00 27.89 0.00 95 0.00 0.00 printBucket 0.00 27.89 0.00 59 0.00 0.00 cache_free_element 0.00 27.89 0.00 36 0.00 0.00 cache_add_element 0.00 27.89 0.00 36 0.00 0.00 cache_get_element 0.00 27.89 0.00 10 0.00 0.00 get_index 0.00 27.89 0.00 10 0.00 0.00 get_nth_value 0.00 27.89 0.00 10 0.00 0.00 read_value 0.00 27.89 0.00 8 0.00 0.00 do_proc_info 0.00 27.89 0.00 4 0.00 0.00 interest_set_init 0.00 27.89 0.00 4 0.00 0.00 malloc_fd_set 0.00 27.89 0.00 3 0.00 0.00 printBucketHdr 0.00 27.89 0.00 3 0.00 0.00 print_mask 0.00 27.89 0.00 1 0.00 0.00 adjust_connections 0.00 27.89 0.00 1 0.00 0.00 cacheClear 0.00 27.89 0.00 1 0.00 0.00 cache_cleanup 0.00 27.89 0.00 1 0.00 0.00 cache_print_stats 0.00 27.89 0.00 1 0.00 0.00 find_closest_prime 0.00 27.89 0.00 1 0.00 0.00 fork_servers 0.00 27.89 0.00 1 0.00 0.00 hash_check_size 0.00 27.89 0.00 1 0.00 0.00 initCache 0.00 27.89 0.00 1 0.00 0.00 init_print_time 0.00 27.89 0.00 1 0.00 0.00 install_sig_handlers 0.00 27.89 0.00 1 0.00 0.00 intr_print_info 0.00 27.89 0.00 1 0.00 0.00 lru_init 0.00 27.89 0.00 1 0.00 3.95 main 0.00 27.89 0.00 1 0.00 0.00 netstat_init 0.00 27.89 0.00 1 0.00 0.00 netstat_print 0.00 27.89 0.00 1 0.00 0.00 options_print 0.00 27.89 0.00 1 0.00 0.00 options_set 0.00 27.89 0.00 1 0.00 0.00 options_valid 0.00 27.89 0.00 1 0.00 0.00 print 0.00 27.89 0.00 1 0.00 0.00 printCache 0.00 27.89 0.00 1 0.00 0.00 printFreeList 0.00 27.89 0.00 1 0.00 0.00 printLruList 0.00 27.89 0.00 1 0.00 0.00 print_all 0.00 27.89 0.00 1 0.00 0.00 print_cur_mask 0.00 27.89 0.00 1 0.00 0.00 print_extra_info 0.00 27.89 0.00 1 0.00 0.00 print_syscall_info 0.00 27.89 0.00 1 0.00 0.00 process_args 0.00 27.89 0.00 1 0.00 0.00 rusage_init 0.00 27.89 0.00 1 0.00 0.00 rusage_print 0.00 27.89 0.00 1 0.00 0.00 select_loop_init 0.00 27.89 0.00 1 0.00 0.00 server_init 0.00 27.89 0.00 1 0.00 0.00 sig_kill_handler 0.00 27.89 0.00 1 0.00 0.00 stats_print 0.00 27.89 0.00 1 0.00 0.00 stats_print_accept 0.00 27.89 0.00 1 0.00 0.00 stats_print_cache 0.00 27.89 0.00 1 0.00 0.00 stats_print_close 0.00 27.89 0.00 1 0.00 0.00 stats_print_conns_on_off 0.00 27.89 0.00 1 0.00 0.00 stats_print_netstats 0.00 27.89 0.00 1 0.00 0.00 stats_print_poll 0.00 27.89 0.00 1 0.00 0.00 stats_print_read 0.00 27.89 0.00 1 0.00 0.00 stats_print_rusage 0.00 27.89 0.00 1 0.00 0.00 stats_print_select 0.00 27.89 0.00 1 0.00 0.00 stats_print_send 0.00 27.89 0.00 1 0.00 0.00 stats_print_signals 0.00 27.89 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 25.78 seconds index % time self children called name [1] 47.0 12.11 0.00 sendfile [1] ----------------------------------------------- 0.00 3.95 1/1 __libc_start_main [3] [2] 15.3 0.00 3.95 1 main [2] 0.18 3.57 1/1 select_loop [4] 0.20 0.00 1/1 init_info [19] 0.00 0.00 1/124880 interest_set_add_readable [38] 0.00 0.00 1/289226 lru_access [31] 0.00 0.00 1/1 options_set [83] 0.00 0.00 1/1 init_print_time [76] 0.00 0.00 1/1 process_args [93] 0.00 0.00 1/1 options_valid [84] 0.00 0.00 1/1 print_extra_info [91] 0.00 0.00 1/1 options_print [82] 0.00 0.00 1/1 netstat_init [80] 0.00 0.00 1/1 rusage_init [94] 0.00 0.00 1/1 install_sig_handlers [77] 0.00 0.00 1/1 fork_servers [73] 0.00 0.00 1/1 server_init [97] 0.00 0.00 1/1 select_loop_init [96] 0.00 0.00 1/1 initCache [75] ----------------------------------------------- [3] 15.3 0.00 3.95 __libc_start_main [3] 0.00 3.95 1/1 main [2] ----------------------------------------------- 0.18 3.57 1/1 main [2] [4] 14.5 0.18 3.57 1 select_loop [4] 0.20 3.37 1248/1248 process_sds [5] ----------------------------------------------- 0.20 3.37 1248/1248 select_loop [4] [5] 13.8 0.20 3.37 1248 process_sds [5] 0.40 1.75 124879/124879 socket_readable [8] 0.15 0.39 149345/149345 socket_writable [13] 0.11 0.19 410682/410682 event_set_is_readable_or_writable [15] 0.07 0.12 274823/274823 do_sd [21] 0.10 0.00 410682/425683 conns_off_if_needed [24] 0.00 0.08 599/599 do_new_connections [27] 0.02 0.00 149345/149345 do_writable [46] 0.00 0.00 125478/125478 do_readable [52] ----------------------------------------------- [6] 10.5 2.71 0.00 read [6] ----------------------------------------------- [7] 10.0 2.59 0.00 setsockopt [7] ----------------------------------------------- 0.40 1.75 124879/124879 process_sds [5] [8] 8.3 0.40 1.75 124879 socket_readable [8] 1.24 0.00 109878/109878 parse_bytes [10] 0.18 0.21 109878/109878 cache_add [14] 0.02 0.02 15001/15001 do_close [37] 0.03 0.00 109878/289226 lru_access [31] 0.01 0.01 109878/124879 interest_set_del_readable [45] 0.00 0.01 109878/109878 interest_set_add_writable [48] 0.01 0.00 109878/429105 set_fsm_state [36] ----------------------------------------------- [9] 7.8 2.02 0.00 write [9] ----------------------------------------------- 1.24 0.00 109878/109878 socket_readable [8] [10] 4.8 1.24 0.00 109878 parse_bytes [10] ----------------------------------------------- [11] 3.8 0.97 0.00 close [11] ----------------------------------------------- [12] 2.9 0.74 0.00 select [12] ----------------------------------------------- 0.15 0.39 149345/149345 process_sds [5] [13] 2.1 0.15 0.39 149345 socket_writable [13] 0.25 0.00 149345/149345 do_sendfile [17] 0.04 0.00 149345/289226 lru_access [31] 0.02 0.01 109878/124880 interest_set_add_readable [38] 0.02 0.01 109878/124879 interest_set_del_writable [39] 0.01 0.02 149345/149345 send_reply [44] 0.01 0.00 109878/429105 set_fsm_state [36] ----------------------------------------------- 0.18 0.21 109878/109878 socket_readable [8] [14] 1.5 0.18 0.21 109878 cache_add [14] 0.06 0.02 109878/109878 cache_lookup [26] 0.07 0.00 109878/109878 cache_lru_add [32] 0.00 0.06 109842/109842 cache_lru_access [34] 0.00 0.00 36/36 cache_add_element [58] ----------------------------------------------- 0.11 0.19 410682/410682 process_sds [5] [15] 1.2 0.11 0.19 410682 event_set_is_readable_or_writable [15] 0.03 0.09 410682/685505 event_set_is_readable [20] 0.01 0.06 285204/434549 event_set_is_writable [23] ----------------------------------------------- [16] 1.1 0.29 0.00 accept [16] ----------------------------------------------- 0.25 0.00 149345/149345 socket_writable [13] [17] 1.0 0.25 0.00 149345 do_sendfile [17] ----------------------------------------------- 0.09 0.00 434549/1120054 event_set_is_writable [23] 0.15 0.00 685505/1120054 event_set_is_readable [20] [18] 0.9 0.24 0.00 1120054 event_set_is_set [18] ----------------------------------------------- 0.20 0.00 1/1 main [2] [19] 0.8 0.20 0.00 1 init_info [19] ----------------------------------------------- 0.02 0.06 274823/685505 do_sd [21] 0.03 0.09 410682/685505 event_set_is_readable_or_writable [15] [20] 0.8 0.05 0.15 685505 event_set_is_readable [20] 0.15 0.00 685505/1120054 event_set_is_set [18] ----------------------------------------------- 0.07 0.12 274823/274823 process_sds [5] [21] 0.7 0.07 0.12 274823 do_sd [21] 0.02 0.06 274823/685505 event_set_is_readable [20] 0.01 0.03 149345/434549 event_set_is_writable [23] ----------------------------------------------- [22] 0.6 0.16 0.00 __ctype_b_loc [22] ----------------------------------------------- 0.01 0.03 149345/434549 do_sd [21] 0.01 0.06 285204/434549 event_set_is_readable_or_writable [15] [23] 0.4 0.02 0.09 434549 event_set_is_writable [23] 0.09 0.00 434549/1120054 event_set_is_set [18] ----------------------------------------------- 0.00 0.00 15001/425683 repeat_accept [28] 0.10 0.00 410682/425683 process_sds [5] [24] 0.4 0.10 0.00 425683 conns_off_if_needed [24] ----------------------------------------------- [25] 0.3 0.09 0.00 fcntl [25] ----------------------------------------------- 0.06 0.02 109878/109878 cache_add [14] [26] 0.3 0.06 0.02 109878 cache_lookup [26] 0.02 0.00 109878/109878 spec_hash [47] 0.00 0.00 36/36 cache_get_element [59] ----------------------------------------------- 0.00 0.08 599/599 process_sds [5] [27] 0.3 0.00 0.08 599 do_new_connections [27] 0.00 0.08 599/599 repeat_accept [28] ----------------------------------------------- 0.00 0.08 599/599 do_new_connections [27] [28] 0.3 0.00 0.08 599 repeat_accept [28] 0.00 0.08 15600/15600 socket_new_conn [29] 0.00 0.00 15001/425683 conns_off_if_needed [24] ----------------------------------------------- 0.00 0.08 15600/15600 repeat_accept [28] [29] 0.3 0.00 0.08 15600 socket_new_conn [29] 0.06 0.02 15001/15001 socket_setup [30] 0.00 0.00 599/599 process_accept_errs [55] ----------------------------------------------- 0.06 0.02 15001/15001 socket_new_conn [29] [30] 0.3 0.06 0.02 15001 socket_setup [30] 0.01 0.00 30002/289226 lru_access [31] 0.00 0.00 15001/124880 interest_set_add_readable [38] 0.00 0.00 30002/429105 set_fsm_state [36] ----------------------------------------------- 0.00 0.00 1/289226 main [2] 0.01 0.00 30002/289226 socket_setup [30] 0.03 0.00 109878/289226 socket_readable [8] 0.04 0.00 149345/289226 socket_writable [13] [31] 0.3 0.07 0.00 289226 lru_access [31] ----------------------------------------------- 0.07 0.00 109878/109878 cache_add [14] [32] 0.3 0.07 0.00 109878 cache_lru_add [32] ----------------------------------------------- [33] 0.3 0.07 0.00 strcmp [33] ----------------------------------------------- 0.00 0.06 109842/109842 cache_add [14] [34] 0.2 0.00 0.06 109842 cache_lru_access [34] 0.06 0.00 109842/109842 cache_lru_delete [35] ----------------------------------------------- 0.06 0.00 109842/109842 cache_lru_access [34] [35] 0.2 0.06 0.00 109842 cache_lru_delete [35] ----------------------------------------------- 0.00 0.00 30002/429105 do_close [37] 0.00 0.00 30002/429105 socket_setup [30] 0.01 0.00 109878/429105 socket_writable [13] 0.01 0.00 109878/429105 socket_readable [8] 0.02 0.00 149345/429105 send_reply [44] [36] 0.2 0.05 0.00 429105 set_fsm_state [36] ----------------------------------------------- 0.02 0.02 15001/15001 socket_readable [8] [37] 0.2 0.02 0.02 15001 do_close [37] 0.01 0.00 15001/15001 close_sock [49] 0.00 0.00 15001/124879 interest_set_del_writable [39] 0.00 0.00 30002/429105 set_fsm_state [36] 0.00 0.00 15001/124879 interest_set_del_readable [45] 0.00 0.00 15001/15001 interest_set_done [53] 0.00 0.00 15001/15001 should_enable_new_conns [54] ----------------------------------------------- 0.00 0.00 1/124880 main [2] 0.00 0.00 15001/124880 socket_setup [30] 0.02 0.01 109878/124880 socket_writable [13] [38] 0.1 0.02 0.02 124880 interest_set_add_readable [38] 0.02 0.00 124880/234758 interest_set_add [41] ----------------------------------------------- 0.00 0.00 15001/124879 do_close [37] 0.02 0.01 109878/124879 socket_writable [13] [39] 0.1 0.02 0.01 124879 interest_set_del_writable [39] 0.01 0.00 124879/249758 interest_set_del [40] ----------------------------------------------- 0.01 0.00 124879/249758 interest_set_del_readable [45] 0.01 0.00 124879/249758 interest_set_del_writable [39] [40] 0.1 0.03 0.00 249758 interest_set_del [40] ----------------------------------------------- 0.01 0.00 109878/234758 interest_set_add_writable [48] 0.02 0.00 124880/234758 interest_set_add_readable [38] [41] 0.1 0.03 0.00 234758 interest_set_add [41] ----------------------------------------------- [42] 0.1 0.03 0.00 fork [42] ----------------------------------------------- [43] 0.1 0.03 0.00 __errno_location [43] ----------------------------------------------- 0.01 0.02 149345/149345 socket_writable [13] [44] 0.1 0.01 0.02 149345 send_reply [44] 0.02 0.00 149345/429105 set_fsm_state [36] ----------------------------------------------- 0.00 0.00 15001/124879 do_close [37] 0.01 0.01 109878/124879 socket_readable [8] [45] 0.1 0.01 0.01 124879 interest_set_del_readable [45] 0.01 0.00 124879/249758 interest_set_del [40] ----------------------------------------------- 0.02 0.00 149345/149345 process_sds [5] [46] 0.1 0.02 0.00 149345 do_writable [46] ----------------------------------------------- 0.02 0.00 109878/109878 cache_lookup [26] [47] 0.1 0.02 0.00 109878 spec_hash [47] ----------------------------------------------- 0.00 0.01 109878/109878 socket_readable [8] [48] 0.1 0.00 0.01 109878 interest_set_add_writable [48] 0.01 0.00 109878/234758 interest_set_add [41] ----------------------------------------------- 0.01 0.00 15001/15001 do_close [37] [49] 0.0 0.01 0.00 15001 close_sock [49] ----------------------------------------------- [50] 0.0 0.01 0.00 fflush [50] ----------------------------------------------- [51] 0.0 0.01 0.00 gettimeofday [51] ----------------------------------------------- 0.00 0.00 125478/125478 process_sds [5] [52] 0.0 0.00 0.00 125478 do_readable [52] ----------------------------------------------- 0.00 0.00 15001/15001 do_close [37] [53] 0.0 0.00 0.00 15001 interest_set_done [53] ----------------------------------------------- 0.00 0.00 15001/15001 do_close [37] [54] 0.0 0.00 0.00 15001 should_enable_new_conns [54] ----------------------------------------------- 0.00 0.00 599/599 socket_new_conn [29] [55] 0.0 0.00 0.00 599 process_accept_errs [55] ----------------------------------------------- 0.00 0.00 23/95 printFreeList [87] 0.00 0.00 36/95 printCache [86] 0.00 0.00 36/95 printLruList [88] [56] 0.0 0.00 0.00 95 printBucket [56] ----------------------------------------------- 0.00 0.00 59/59 initCache [75] [57] 0.0 0.00 0.00 59 cache_free_element [57] ----------------------------------------------- 0.00 0.00 36/36 cache_add [14] [58] 0.0 0.00 0.00 36 cache_add_element [58] ----------------------------------------------- 0.00 0.00 36/36 cache_lookup [26] [59] 0.0 0.00 0.00 36 cache_get_element [59] ----------------------------------------------- 0.00 0.00 10/10 read_value [62] [60] 0.0 0.00 0.00 10 get_index [60] ----------------------------------------------- 0.00 0.00 10/10 read_value [62] [61] 0.0 0.00 0.00 10 get_nth_value [61] ----------------------------------------------- 0.00 0.00 5/10 netstat_init [80] 0.00 0.00 5/10 netstat_print [81] [62] 0.0 0.00 0.00 10 read_value [62] 0.00 0.00 10/10 get_index [60] 0.00 0.00 10/10 get_nth_value [61] ----------------------------------------------- 0.00 0.00 8/8 print_extra_info [91] [63] 0.0 0.00 0.00 8 do_proc_info [63] ----------------------------------------------- 0.00 0.00 4/4 select_loop_init [96] [64] 0.0 0.00 0.00 4 interest_set_init [64] ----------------------------------------------- 0.00 0.00 4/4 select_loop_init [96] [65] 0.0 0.00 0.00 4 malloc_fd_set [65] ----------------------------------------------- 0.00 0.00 1/3 printCache [86] 0.00 0.00 1/3 printLruList [88] 0.00 0.00 1/3 printFreeList [87] [66] 0.0 0.00 0.00 3 printBucketHdr [66] ----------------------------------------------- 0.00 0.00 3/3 install_sig_handlers [77] [67] 0.0 0.00 0.00 3 print_mask [67] ----------------------------------------------- 0.00 0.00 1/1 process_args [93] [68] 0.0 0.00 0.00 1 adjust_connections [68] ----------------------------------------------- 0.00 0.00 1/1 sig_kill_handler [98] [69] 0.0 0.00 0.00 1 cacheClear [69] ----------------------------------------------- 0.00 0.00 1/1 sig_kill_handler [98] [70] 0.0 0.00 0.00 1 cache_cleanup [70] ----------------------------------------------- 0.00 0.00 1/1 stats_print [99] [71] 0.0 0.00 0.00 1 cache_print_stats [71] ----------------------------------------------- 0.00 0.00 1/1 initCache [75] [72] 0.0 0.00 0.00 1 find_closest_prime [72] ----------------------------------------------- 0.00 0.00 1/1 main [2] [73] 0.0 0.00 0.00 1 fork_servers [73] ----------------------------------------------- 0.00 0.00 1/1 initCache [75] [74] 0.0 0.00 0.00 1 hash_check_size [74] ----------------------------------------------- 0.00 0.00 1/1 main [2] [75] 0.0 0.00 0.00 1 initCache [75] 0.00 0.00 59/59 cache_free_element [57] 0.00 0.00 1/1 find_closest_prime [72] 0.00 0.00 1/1 hash_check_size [74] ----------------------------------------------- 0.00 0.00 1/1 main [2] [76] 0.0 0.00 0.00 1 init_print_time [76] ----------------------------------------------- 0.00 0.00 1/1 main [2] [77] 0.0 0.00 0.00 1 install_sig_handlers [77] 0.00 0.00 3/3 print_mask [67] 0.00 0.00 1/1 print_cur_mask [90] ----------------------------------------------- 0.00 0.00 1/1 print_all [89] [78] 0.0 0.00 0.00 1 intr_print_info [78] ----------------------------------------------- 0.00 0.00 1/1 server_init [97] [79] 0.0 0.00 0.00 1 lru_init [79] ----------------------------------------------- 0.00 0.00 1/1 main [2] [80] 0.0 0.00 0.00 1 netstat_init [80] 0.00 0.00 5/10 read_value [62] ----------------------------------------------- 0.00 0.00 1/1 stats_print [99] [81] 0.0 0.00 0.00 1 netstat_print [81] 0.00 0.00 5/10 read_value [62] ----------------------------------------------- 0.00 0.00 1/1 main [2] [82] 0.0 0.00 0.00 1 options_print [82] ----------------------------------------------- 0.00 0.00 1/1 main [2] [83] 0.0 0.00 0.00 1 options_set [83] ----------------------------------------------- 0.00 0.00 1/1 main [2] [84] 0.0 0.00 0.00 1 options_valid [84] ----------------------------------------------- 0.00 0.00 1/1 rusage_print [95] [85] 0.0 0.00 0.00 1 print [85] ----------------------------------------------- 0.00 0.00 1/1 print_all [89] [86] 0.0 0.00 0.00 1 printCache [86] 0.00 0.00 36/95 printBucket [56] 0.00 0.00 1/3 printBucketHdr [66] 0.00 0.00 1/1 printLruList [88] ----------------------------------------------- 0.00 0.00 1/1 print_all [89] [87] 0.0 0.00 0.00 1 printFreeList [87] 0.00 0.00 23/95 printBucket [56] 0.00 0.00 1/3 printBucketHdr [66] ----------------------------------------------- 0.00 0.00 1/1 printCache [86] [88] 0.0 0.00 0.00 1 printLruList [88] 0.00 0.00 36/95 printBucket [56] 0.00 0.00 1/3 printBucketHdr [66] ----------------------------------------------- 0.00 0.00 1/1 sig_kill_handler [98] [89] 0.0 0.00 0.00 1 print_all [89] 0.00 0.00 1/1 stats_print [99] 0.00 0.00 1/1 intr_print_info [78] 0.00 0.00 1/1 print_syscall_info [92] 0.00 0.00 1/1 printFreeList [87] 0.00 0.00 1/1 printCache [86] ----------------------------------------------- 0.00 0.00 1/1 install_sig_handlers [77] [90] 0.0 0.00 0.00 1 print_cur_mask [90] ----------------------------------------------- 0.00 0.00 1/1 main [2] [91] 0.0 0.00 0.00 1 print_extra_info [91] 0.00 0.00 8/8 do_proc_info [63] ----------------------------------------------- 0.00 0.00 1/1 print_all [89] [92] 0.0 0.00 0.00 1 print_syscall_info [92] ----------------------------------------------- 0.00 0.00 1/1 main [2] [93] 0.0 0.00 0.00 1 process_args [93] 0.00 0.00 1/1 adjust_connections [68] ----------------------------------------------- 0.00 0.00 1/1 main [2] [94] 0.0 0.00 0.00 1 rusage_init [94] ----------------------------------------------- 0.00 0.00 1/1 stats_print [99] [95] 0.0 0.00 0.00 1 rusage_print [95] 0.00 0.00 1/1 print [85] ----------------------------------------------- 0.00 0.00 1/1 main [2] [96] 0.0 0.00 0.00 1 select_loop_init [96] 0.00 0.00 4/4 interest_set_init [64] 0.00 0.00 4/4 malloc_fd_set [65] ----------------------------------------------- 0.00 0.00 1/1 main [2] [97] 0.0 0.00 0.00 1 server_init [97] 0.00 0.00 1/1 lru_init [79] ----------------------------------------------- 0.00 0.00 1/1 __restore [782] [98] 0.0 0.00 0.00 1 sig_kill_handler [98] 0.00 0.00 1/1 print_all [89] 0.00 0.00 1/1 cacheClear [69] 0.00 0.00 1/1 cache_cleanup [70] ----------------------------------------------- 0.00 0.00 1/1 print_all [89] [99] 0.0 0.00 0.00 1 stats_print [99] 0.00 0.00 1/1 stats_print_accept [100] 0.00 0.00 1/1 stats_print_write [111] 0.00 0.00 1/1 stats_print_read [106] 0.00 0.00 1/1 stats_print_close [102] 0.00 0.00 1/1 stats_print_poll [105] 0.00 0.00 1/1 stats_print_select [108] 0.00 0.00 1/1 stats_print_signals [110] 0.00 0.00 1/1 stats_print_send [109] 0.00 0.00 1/1 cache_print_stats [71] 0.00 0.00 1/1 stats_print_cache [101] 0.00 0.00 1/1 rusage_print [95] 0.00 0.00 1/1 stats_print_rusage [107] 0.00 0.00 1/1 netstat_print [81] 0.00 0.00 1/1 stats_print_netstats [104] 0.00 0.00 1/1 stats_print_conns_on_off [103] ----------------------------------------------- 0.00 0.00 1/1 stats_print [99] [100] 0.0 0.00 0.00 1 stats_print_accept [100] ----------------------------------------------- 0.00 0.00 1/1 stats_print [99] [101] 0.0 0.00 0.00 1 stats_print_cache [101] ----------------------------------------------- 0.00 0.00 1/1 stats_print [99] [102] 0.0 0.00 0.00 1 stats_print_close [102] ----------------------------------------------- 0.00 0.00 1/1 stats_print [99] [103] 0.0 0.00 0.00 1 stats_print_conns_on_off [103] ----------------------------------------------- 0.00 0.00 1/1 stats_print [99] [104] 0.0 0.00 0.00 1 stats_print_netstats [104] ----------------------------------------------- 0.00 0.00 1/1 stats_print [99] [105] 0.0 0.00 0.00 1 stats_print_poll [105] ----------------------------------------------- 0.00 0.00 1/1 stats_print [99] [106] 0.0 0.00 0.00 1 stats_print_read [106] ----------------------------------------------- 0.00 0.00 1/1 stats_print [99] [107] 0.0 0.00 0.00 1 stats_print_rusage [107] ----------------------------------------------- 0.00 0.00 1/1 stats_print [99] [108] 0.0 0.00 0.00 1 stats_print_select [108] ----------------------------------------------- 0.00 0.00 1/1 stats_print [99] [109] 0.0 0.00 0.00 1 stats_print_send [109] ----------------------------------------------- 0.00 0.00 1/1 stats_print [99] [110] 0.0 0.00 0.00 1 stats_print_signals [110] ----------------------------------------------- 0.00 0.00 1/1 stats_print [99] [111] 0.0 0.00 0.00 1 stats_print_write [111] ----------------------------------------------- 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 [22] __ctype_b_loc [74] hash_check_size [5] process_sds [43] __errno_location [75] initCache [6] read (754) __mcount_internal [19] init_info [62] read_value [16] accept [76] init_print_time [28] repeat_accept [68] adjust_connections [77] install_sig_handlers [94] rusage_init [69] cacheClear [41] interest_set_add (interest_set.c) [95] rusage_print [14] cache_add [38] interest_set_add_readable [12] select [58] cache_add_element [48] interest_set_add_writable [4] select_loop [70] cache_cleanup [40] interest_set_del (interest_set.c) [96] select_loop_init [57] cache_free_element [45] interest_set_del_readable [44] send_reply [59] cache_get_element [39] interest_set_del_writable [1] sendfile [26] cache_lookup [53] interest_set_done [97] server_init [34] cache_lru_access [64] interest_set_init [36] set_fsm_state [32] cache_lru_add [78] intr_print_info [7] setsockopt [35] cache_lru_delete [31] lru_access [54] should_enable_new_conns [71] cache_print_stats [79] lru_init [98] sig_kill_handler [11] close [2] main [29] socket_new_conn [49] close_sock [65] malloc_fd_set [8] socket_readable [24] conns_off_if_needed (336) mcount [30] socket_setup [37] do_close [80] netstat_init [13] socket_writable [27] do_new_connections [81] netstat_print [47] spec_hash [63] do_proc_info [82] options_print [99] stats_print [52] do_readable [83] options_set [100] stats_print_accept [21] do_sd [84] options_valid [101] stats_print_cache [17] do_sendfile [10] parse_bytes [102] stats_print_close [46] do_writable [85] print [103] stats_print_conns_on_off [20] event_set_is_readable [56] printBucket [104] stats_print_netstats [15] event_set_is_readable_or_writable [66] printBucketHdr [105] stats_print_poll [18] event_set_is_set (interest_set.c) [86] printCache [106] stats_print_read [23] event_set_is_writable [87] printFreeList [107] stats_print_rusage [25] fcntl [88] printLruList [108] stats_print_select [50] fflush [89] print_all [109] stats_print_send [72] find_closest_prime [90] print_cur_mask [110] stats_print_signals [42] fork [91] print_extra_info [111] stats_print_write [73] fork_servers [67] print_mask [33] strcmp [60] get_index [92] print_syscall_info [9] write [61] get_nth_value [55] process_accept_errs [51] gettimeofday [93] process_args