-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsprof2-3.txt
More file actions
130 lines (123 loc) · 7.19 KB
/
sprof2-3.txt
File metadata and controls
130 lines (123 loc) · 7.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
Flat profile:
Each sample counts as 0.01 seconds.
% cumulative self self total
time seconds seconds calls s/call s/call name
93.79 7.09 7.09 965027 0.00 0.00 find_ele_iter_f
4.04 7.40 0.31 12511031 0.00 0.00 Strlen
0.66 7.45 0.05 965027 0.00 0.00 insert_string
0.53 7.49 0.04 compare_ele
0.46 7.52 0.04 965027 0.00 0.00 lower1
0.40 7.55 0.03 1 0.03 0.03 sort_words
0.13 7.56 0.01 965029 0.00 0.00 get_word
0.13 7.57 0.01 965027 0.00 0.00 h_add
0.00 7.57 0.00 965028 0.00 0.00 get_token
0.00 7.57 0.00 363039 0.00 0.00 new_ele
0.00 7.57 0.00 363039 0.00 0.00 save_string
0.00 7.57 0.00 56 0.00 0.00 match_length
0.00 7.57 0.00 7 0.00 0.00 add_int_option
0.00 7.57 0.00 7 0.00 0.00 find_option
0.00 7.57 0.00 1 0.00 0.00 add_string_option
0.00 7.57 0.00 1 0.00 0.00 init_token
0.00 7.57 0.00 1 0.00 0.00 new_table
0.00 7.57 0.00 1 0.00 0.00 parse_options
0.00 7.57 0.00 1 0.00 0.00 show_options
0.00 7.57 0.00 1 0.00 7.53 word_freq
Call graph
granularity: each sample hit covers 2 byte(s) for 0.13% of 7.57 seconds
index % time self children called name
0.00 7.53 1/1 main [2]
[1] 99.5 0.00 7.53 1 word_freq [1]
0.05 7.39 965027/965027 insert_string [3]
0.00 0.06 965028/965028 get_token [7]
0.03 0.00 1/1 sort_words [9]
0.00 0.00 1/1 new_table [19]
0.00 0.00 1/1 init_token [18]
-----------------------------------------------
<spontaneous>
[2] 99.5 0.00 7.53 main [2]
0.00 7.53 1/1 word_freq [1]
0.00 0.00 7/7 add_int_option [15]
0.00 0.00 1/1 add_string_option [17]
0.00 0.00 1/1 show_options [21]
0.00 0.00 1/1 parse_options [20]
-----------------------------------------------
0.05 7.39 965027/965027 word_freq [1]
[3] 98.3 0.05 7.39 965027 insert_string [3]
7.09 0.02 965027/965027 find_ele_iter_f [4]
0.04 0.24 965027/965027 lower1 [6]
0.01 0.00 965027/965027 h_add [11]
-----------------------------------------------
7.09 0.02 965027/965027 insert_string [3]
[4] 93.9 7.09 0.02 965027 find_ele_iter_f [4]
0.00 0.01 363039/363039 new_ele [12]
0.00 0.01 363039/363039 save_string [13]
-----------------------------------------------
0.01 0.00 363039/12511031 new_ele [12]
0.01 0.00 363039/12511031 save_string [13]
0.05 0.00 1930054/12511031 get_token [7]
0.24 0.00 9854899/12511031 lower1 [6]
[5] 4.0 0.31 0.00 12511031 Strlen [5]
-----------------------------------------------
0.04 0.24 965027/965027 insert_string [3]
[6] 3.6 0.04 0.24 965027 lower1 [6]
0.24 0.00 9854899/12511031 Strlen [5]
-----------------------------------------------
0.00 0.06 965028/965028 word_freq [1]
[7] 0.8 0.00 0.06 965028 get_token [7]
0.05 0.00 1930054/12511031 Strlen [5]
0.01 0.00 965029/965029 get_word [10]
-----------------------------------------------
<spontaneous>
[8] 0.5 0.04 0.00 compare_ele [8]
-----------------------------------------------
0.03 0.00 1/1 word_freq [1]
[9] 0.4 0.03 0.00 1 sort_words [9]
-----------------------------------------------
0.01 0.00 965029/965029 get_token [7]
[10] 0.1 0.01 0.00 965029 get_word [10]
-----------------------------------------------
0.01 0.00 965027/965027 insert_string [3]
[11] 0.1 0.01 0.00 965027 h_add [11]
-----------------------------------------------
0.00 0.01 363039/363039 find_ele_iter_f [4]
[12] 0.1 0.00 0.01 363039 new_ele [12]
0.01 0.00 363039/12511031 Strlen [5]
-----------------------------------------------
0.00 0.01 363039/363039 find_ele_iter_f [4]
[13] 0.1 0.00 0.01 363039 save_string [13]
0.01 0.00 363039/12511031 Strlen [5]
-----------------------------------------------
0.00 0.00 56/56 find_option [16]
[14] 0.0 0.00 0.00 56 match_length [14]
-----------------------------------------------
0.00 0.00 7/7 main [2]
[15] 0.0 0.00 0.00 7 add_int_option [15]
-----------------------------------------------
0.00 0.00 7/7 parse_options [20]
[16] 0.0 0.00 0.00 7 find_option [16]
0.00 0.00 56/56 match_length [14]
-----------------------------------------------
0.00 0.00 1/1 main [2]
[17] 0.0 0.00 0.00 1 add_string_option [17]
-----------------------------------------------
0.00 0.00 1/1 word_freq [1]
[18] 0.0 0.00 0.00 1 init_token [18]
-----------------------------------------------
0.00 0.00 1/1 word_freq [1]
[19] 0.0 0.00 0.00 1 new_table [19]
-----------------------------------------------
0.00 0.00 1/1 main [2]
[20] 0.0 0.00 0.00 1 parse_options [20]
0.00 0.00 7/7 find_option [16]
-----------------------------------------------
0.00 0.00 1/1 main [2]
[21] 0.0 0.00 0.00 1 show_options [21]
-----------------------------------------------
Index by function name
[5] Strlen [10] get_word [19] new_table
[15] add_int_option [11] h_add [20] parse_options
[17] add_string_option [18] init_token [13] save_string
[8] compare_ele [3] insert_string [21] show_options
[4] find_ele_iter_f [6] lower1 [9] sort_words
[16] find_option [14] match_length [1] word_freq
[7] get_token [12] new_ele