Flat profile: Each sample counts as 0.01 seconds. % cumulative self self total time seconds seconds calls us/call us/call name 32.38 25.84 25.84 short_loop 23.54 44.62 18.79 do_scan 12.10 54.28 9.66 2368 4079.39 11878.55 deflate 7.23 60.05 5.77 7101 812.56 812.56 updcrc 6.60 65.33 5.27 4733 1113.46 1660.69 fill_window 4.50 68.92 3.59 30331374 0.12 0.12 ct_tally 4.00 72.11 3.19 51851877 0.06 0.06 send_bits 2.96 74.47 2.36 4876 484.00 1122.02 compress_block 1.44 75.61 1.15 mismatch 1.39 76.72 1.11 3118307 0.36 0.36 pqdownheap 1.15 77.64 0.92 the_end 0.61 78.13 0.49 longest_match 0.51 78.54 0.41 2368 173.14 923.75 lm_init 0.35 78.82 0.28 14856 18.85 116.45 build_tree 0.24 79.01 0.19 limit_ok 0.18 79.15 0.14 14856 9.42 9.42 gen_bitlen 0.16 79.28 0.13 1260947 0.10 0.10 bi_reverse 0.15 79.40 0.12 long_loop 0.09 79.47 0.07 14857 4.71 13.46 gen_codes 0.09 79.54 0.07 9114 7.68 15.77 send_tree 0.09 79.61 0.07 76 921.05 921.05 copy_block 0.08 79.67 0.06 9904 6.06 6.06 scan_tree 0.05 79.71 0.04 7101 5.63 547.23 file_read 0.04 79.74 0.03 2368 12.67 13635.98 treat_file 0.04 79.77 0.03 maxmatch 0.03 79.79 0.02 4953 4.04 4.04 init_block 0.01 79.80 0.01 2368 4.22 4.22 copy_stat 0.01 79.81 0.01 2368 4.22 13619.09 zip 0.00 79.81 0.00 4952 0.00 128.57 build_bl_tree 0.00 79.81 0.00 4952 0.00 1514.54 flush_block 0.00 79.81 0.00 4557 0.00 32.63 send_all_trees 0.00 79.81 0.00 4294 0.00 0.00 flush_outbuf 0.00 79.81 0.00 4294 0.00 0.00 write_buf 0.00 79.81 0.00 2444 0.00 0.00 bi_windup 0.00 79.81 0.00 2369 0.00 0.00 basename 0.00 79.81 0.00 2368 0.00 0.00 bi_init 0.00 79.81 0.00 2368 0.00 0.00 check_ofname 0.00 79.81 0.00 2368 0.00 0.00 clear_bufs 0.00 79.81 0.00 2368 0.00 0.00 create_outfile 0.00 79.81 0.00 2368 0.00 0.01 ct_init 0.00 79.81 0.00 2368 0.00 0.00 do_stat 0.00 79.81 0.00 2368 0.00 0.00 get_istat 0.00 79.81 0.00 2368 0.00 0.00 get_suffix 0.00 79.81 0.00 2368 0.00 0.00 make_ofname 0.00 79.81 0.00 2368 0.00 0.00 name_too_long 0.00 79.81 0.00 2368 0.00 0.00 reset_times 0.00 79.81 0.00 2368 0.00 0.00 strlwr 0.00 79.81 0.00 1 0.00 0.00 add_envopt 0.00 79.81 0.00 1 0.00 0.00 do_exit % 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.01% of 79.81 seconds index % time self children called name 0.03 32.26 2368/2368 main [2] [1] 40.5 0.03 32.26 2368 treat_file [1] 0.01 32.24 2368/2368 zip [3] 0.01 0.00 2368/2368 copy_stat [32] 0.00 0.00 2368/2368 get_istat [43] 0.00 0.00 2368/2368 make_ofname [45] 0.00 0.00 2368/2368 clear_bufs [40] 0.00 0.00 2368/2368 create_outfile [41] ----------------------------------------------- [2] 40.5 0.00 32.29 main [2] 0.03 32.26 2368/2368 treat_file [1] 0.00 0.00 1/2369 basename [37] 0.00 0.00 1/1 add_envopt [49] 0.00 0.00 1/1 do_exit [50] ----------------------------------------------- 0.01 32.24 2368/2368 treat_file [1] [3] 40.4 0.01 32.24 2368 zip [3] 9.66 18.47 2368/2368 deflate [4] 0.41 1.78 2368/2368 lm_init [14] 1.92 0.00 2368/7101 updcrc [9] 0.00 0.00 2368/2368 ct_init [33] 0.00 0.00 2368/2368 bi_init [38] 0.00 0.00 2368/2369 basename [37] 0.00 0.00 2368/4294 flush_outbuf [34] ----------------------------------------------- 9.66 18.47 2368/2368 zip [3] [4] 35.2 9.66 18.47 2368 deflate [4] 0.00 7.50 4952/4952 flush_block [8] 4.95 2.43 4443/4733 fill_window [7] 3.59 0.00 30331374/30331374 ct_tally [12] ----------------------------------------------- [5] 32.4 25.84 0.00 short_loop [5] ----------------------------------------------- [6] 23.5 18.79 0.00 do_scan [6] ----------------------------------------------- 0.32 0.16 290/4733 lm_init [14] 4.95 2.43 4443/4733 deflate [4] [7] 9.8 5.27 2.59 4733 fill_window [7] 0.03 2.56 4733/7101 file_read [11] ----------------------------------------------- 0.00 7.50 4952/4952 deflate [4] [8] 9.4 0.00 7.50 4952 flush_block [8] 2.36 3.11 4876/4876 compress_block [10] 0.19 0.97 9904/14856 build_tree [15] 0.00 0.64 4952/4952 build_bl_tree [19] 0.00 0.15 4557/4557 send_all_trees [23] 0.07 0.00 76/76 copy_block [28] 0.02 0.00 4952/4953 init_block [31] 0.00 0.00 4952/51851877 send_bits [13] 0.00 0.00 2368/2444 bi_windup [36] ----------------------------------------------- 1.92 0.00 2368/7101 zip [3] 3.85 0.00 4733/7101 file_read [11] [9] 7.2 5.77 0.00 7101 updcrc [9] ----------------------------------------------- 2.36 3.11 4876/4876 flush_block [8] [10] 6.9 2.36 3.11 4876 compress_block [10] 3.11 0.00 50567485/51851877 send_bits [13] ----------------------------------------------- 0.01 1.28 2368/7101 lm_init [14] 0.03 2.56 4733/7101 fill_window [7] [11] 4.9 0.04 3.85 7101 file_read [11] 3.85 0.00 4733/7101 updcrc [9] ----------------------------------------------- 3.59 0.00 30331374/30331374 deflate [4] [12] 4.5 3.59 0.00 30331374 ct_tally [12] ----------------------------------------------- 0.00 0.00 4952/51851877 flush_block [8] 0.01 0.00 81603/51851877 send_all_trees [23] 0.07 0.00 1197837/51851877 send_tree [24] 3.11 0.00 50567485/51851877 compress_block [10] [13] 4.0 3.19 0.00 51851877 send_bits [13] 0.00 0.00 1784/4294 flush_outbuf [34] ----------------------------------------------- 0.41 1.78 2368/2368 zip [3] [14] 2.7 0.41 1.78 2368 lm_init [14] 0.01 1.28 2368/7101 file_read [11] 0.32 0.16 290/4733 fill_window [7] ----------------------------------------------- 0.09 0.48 4952/14856 build_bl_tree [19] 0.19 0.97 9904/14856 flush_block [8] [15] 2.2 0.28 1.45 14856 build_tree [15] 1.11 0.00 3118307/3118307 pqdownheap [17] 0.07 0.13 14856/14857 gen_codes [21] 0.14 0.00 14856/14856 gen_bitlen [25] ----------------------------------------------- [16] 1.4 1.15 0.00 mismatch [16] ----------------------------------------------- 1.11 0.00 3118307/3118307 build_tree [15] [17] 1.4 1.11 0.00 3118307 pqdownheap [17] ----------------------------------------------- [18] 1.1 0.92 0.00 the_end [18] ----------------------------------------------- 0.00 0.64 4952/4952 flush_block [8] [19] 0.8 0.00 0.64 4952 build_bl_tree [19] 0.09 0.48 4952/14856 build_tree [15] 0.06 0.00 9904/9904 scan_tree [29] ----------------------------------------------- [20] 0.6 0.49 0.00 longest_match [20] ----------------------------------------------- 0.00 0.00 1/14857 ct_init [33] 0.07 0.13 14856/14857 build_tree [15] [21] 0.3 0.07 0.13 14857 gen_codes [21] 0.13 0.00 1260917/1260947 bi_reverse [26] ----------------------------------------------- [22] 0.2 0.19 0.00 limit_ok [22] ----------------------------------------------- 0.00 0.15 4557/4557 flush_block [8] [23] 0.2 0.00 0.15 4557 send_all_trees [23] 0.07 0.07 9114/9114 send_tree [24] 0.01 0.00 81603/51851877 send_bits [13] ----------------------------------------------- 0.07 0.07 9114/9114 send_all_trees [23] [24] 0.2 0.07 0.07 9114 send_tree [24] 0.07 0.00 1197837/51851877 send_bits [13] ----------------------------------------------- 0.14 0.00 14856/14856 build_tree [15] [25] 0.2 0.14 0.00 14856 gen_bitlen [25] ----------------------------------------------- 0.00 0.00 30/1260947 ct_init [33] 0.13 0.00 1260917/1260947 gen_codes [21] [26] 0.2 0.13 0.00 1260947 bi_reverse [26] ----------------------------------------------- [27] 0.2 0.12 0.00 long_loop [27] ----------------------------------------------- 0.07 0.00 76/76 flush_block [8] [28] 0.1 0.07 0.00 76 copy_block [28] 0.00 0.00 142/4294 flush_outbuf [34] 0.00 0.00 76/2444 bi_windup [36] ----------------------------------------------- 0.06 0.00 9904/9904 build_bl_tree [19] [29] 0.1 0.06 0.00 9904 scan_tree [29] ----------------------------------------------- [30] 0.0 0.03 0.00 maxmatch [30] ----------------------------------------------- 0.00 0.00 1/4953 ct_init [33] 0.02 0.00 4952/4953 flush_block [8] [31] 0.0 0.02 0.00 4953 init_block [31] ----------------------------------------------- 0.01 0.00 2368/2368 treat_file [1] [32] 0.0 0.01 0.00 2368 copy_stat [32] 0.00 0.00 2368/2368 reset_times [47] ----------------------------------------------- 0.00 0.00 2368/2368 zip [3] [33] 0.0 0.00 0.00 2368 ct_init [33] 0.00 0.00 1/14857 gen_codes [21] 0.00 0.00 1/4953 init_block [31] 0.00 0.00 30/1260947 bi_reverse [26] ----------------------------------------------- 0.00 0.00 142/4294 copy_block [28] 0.00 0.00 1784/4294 send_bits [13] 0.00 0.00 2368/4294 zip [3] [34] 0.0 0.00 0.00 4294 flush_outbuf [34] 0.00 0.00 4294/4294 write_buf [35] ----------------------------------------------- 0.00 0.00 4294/4294 flush_outbuf [34] [35] 0.0 0.00 0.00 4294 write_buf [35] ----------------------------------------------- 0.00 0.00 76/2444 copy_block [28] 0.00 0.00 2368/2444 flush_block [8] [36] 0.0 0.00 0.00 2444 bi_windup [36] ----------------------------------------------- 0.00 0.00 1/2369 main [2] 0.00 0.00 2368/2369 zip [3] [37] 0.0 0.00 0.00 2369 basename [37] ----------------------------------------------- 0.00 0.00 2368/2368 zip [3] [38] 0.0 0.00 0.00 2368 bi_init [38] ----------------------------------------------- 0.00 0.00 2368/2368 create_outfile [41] [39] 0.0 0.00 0.00 2368 check_ofname [39] ----------------------------------------------- 0.00 0.00 2368/2368 treat_file [1] [40] 0.0 0.00 0.00 2368 clear_bufs [40] ----------------------------------------------- 0.00 0.00 2368/2368 treat_file [1] [41] 0.0 0.00 0.00 2368 create_outfile [41] 0.00 0.00 2368/2368 check_ofname [39] 0.00 0.00 2368/2368 name_too_long [46] ----------------------------------------------- 0.00 0.00 2368/2368 get_istat [43] [42] 0.0 0.00 0.00 2368 do_stat [42] ----------------------------------------------- 0.00 0.00 2368/2368 treat_file [1] [43] 0.0 0.00 0.00 2368 get_istat [43] 0.00 0.00 2368/2368 do_stat [42] ----------------------------------------------- 0.00 0.00 2368/2368 make_ofname [45] [44] 0.0 0.00 0.00 2368 get_suffix [44] 0.00 0.00 2368/2368 strlwr [48] ----------------------------------------------- 0.00 0.00 2368/2368 treat_file [1] [45] 0.0 0.00 0.00 2368 make_ofname [45] 0.00 0.00 2368/2368 get_suffix [44] ----------------------------------------------- 0.00 0.00 2368/2368 create_outfile [41] [46] 0.0 0.00 0.00 2368 name_too_long [46] ----------------------------------------------- 0.00 0.00 2368/2368 copy_stat [32] [47] 0.0 0.00 0.00 2368 reset_times [47] ----------------------------------------------- 0.00 0.00 2368/2368 get_suffix [44] [48] 0.0 0.00 0.00 2368 strlwr [48] ----------------------------------------------- 0.00 0.00 1/1 main [2] [49] 0.0 0.00 0.00 1 add_envopt [49] ----------------------------------------------- 0.00 0.00 1/1 main [2] [50] 0.0 0.00 0.00 1 do_exit [50] ----------------------------------------------- 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 [49] add_envopt [6] do_scan (gmon-start.c) [16] mismatch (gmon-start.c) [37] basename [42] do_stat (gmon-start.c) [46] name_too_long (gmon-start.c) [38] bi_init [11] file_read [17] pqdownheap (gmon-start.c) [26] bi_reverse [7] fill_window (gmon-start.c) [47] reset_times (gmon-start.c) [36] bi_windup [8] flush_block [29] scan_tree (gmon-start.c) [19] build_bl_tree (gmon-start.c) [34] flush_outbuf [23] send_all_trees (gmon-start.c) [15] build_tree (gmon-start.c) [25] gen_bitlen (gmon-start.c) [13] send_bits [39] check_ofname (gmon-start.c) [21] gen_codes (gmon-start.c) [24] send_tree (gmon-start.c) [40] clear_bufs [43] get_istat (gmon-start.c) [5] short_loop (gmon-start.c) [10] compress_block (gmon-start.c) [44] get_suffix (gmon-start.c) [48] strlwr [28] copy_block [31] init_block (gmon-start.c) [18] the_end (gmon-start.c) [32] copy_stat (gmon-start.c) [22] limit_ok (gmon-start.c) [1] treat_file (gmon-start.c) [41] create_outfile (gmon-start.c) [14] lm_init [9] updcrc [33] ct_init [27] long_loop (gmon-start.c) [35] write_buf [12] ct_tally [20] longest_match [3] zip [4] deflate [45] make_ofname (gmon-start.c) [50] do_exit (gmon-start.c) [30] maxmatch (gmon-start.c)