This change consists of two relatively independent parts, but they are both about handling the granularity, so bundling them together. First, in #415 there is a discussion that having a granularity mode by source lines but with inlines hidden would be useful. The agreement is also that adding `-linenoinlines` granularity would make the granularity flags too messy (and they are already somewhat messy with `-addresses` and `-addressnoinlines`. So, it was proposed to make `-noinlines` a separate flag, which is what this change does. Note that the flag is now pulled out of the granularity group so it's a bit of backward incompatible change but I think it is acceptable. For the example in issue #415 the user would now be able to specify `-list foo -noinlines` to produce annotated source where the metrics from the inlined functions are attributed to the calling inliner line. With this change, I am also dropping the `-addressnoinlines` granularity which is now supported as `-addresses -noinlines` combination. I couldn't find any usage of this option at least internally at Google, so I think it's safe to remove it. Second, I am adding a separate `-filefunctions` granularity which groups the data by both function and file. This is a follow-up to #110 from the past where we changed the `-functions` granularity to not group by file (it used to), and since then there was a couple of reports where using just function name alone would over-aggregate the data in cases when a function with the same name is contained in multiple source files (e.g. see b/18874275 internally). Also, make a number of assorted documentation and `-help` fixes.
|
|
||
80 |
|
80 |
|
81 |
|
81 |
|
82 |
|
82 |
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
|
|
91 |
|
91 |
|
92 |
|
92 |
|
93 |
|
93 |
|
94 |
|
94 |
|
95 |
|
95 |
|
96 |
|
96 |
|
97 |
|
|
|
|
97 |
|
|
98 |
|
98 |
|
99 |
|
99 |
|
100 |
|
100 |
|
|
|
||
209 |
|
209 |
|
210 |
|
210 |
|
211 |
|
211 |
|
212 |
|
|
|
213 |
|
|
|
214 |
|
|
|
215 |
|
|
|
216 |
|
|
|
217 |
|
|
|
|
212 |
|
|
|
213 |
|
|
|
214 |
|
|
|
215 |
|
|
|
216 |
|
|
|
217 |
|
|
218 |
|
218 |
|
219 |
|
219 |
|
220 |
|
220 |
|
|
|
||
228 |
|
228 |
|
229 |
|
229 |
|
230 |
|
230 |
|
231 |
|
|
|
|
231 |
|
|
|
232 |
|
|
|
233 |
|
|
|
234 |
|
|
232 |
|
235 |
|
233 |
|
236 |
|
234 |
|
237 |
|
235 |
|
|
|
|
238 |
|
|
236 |
|
239 |
|
237 |
|
|
|
238 |
|
|
|
239 |
|
|
|
240 |
|
|
|
241 |
|
|
|
|
240 |
|
|
|
241 |
|
|
242 |
|
242 |
|
243 |
|
243 |
|
244 |
|
244 |
|
|
|
||
152 |
|
152 |
|
153 |
|
153 |
|
154 |
|
154 |
|
|
155 |
|
|
|
156 |
|
|
|
157 |
|
|
|
158 |
|
|
|
159 |
|
|
|
160 |
|
|
|
161 |
|
|
|
162 |
|
|
155 |
|
163 |
|
156 |
|
164 |
|
157 |
|
165 |
|
158 |
|
|
|
159 |
|
|
|
160 |
|
|
|
161 |
|
166 |
|
162 |
|
167 |
|
163 |
|
|
|
|
168 |
|
|
|
169 |
|
|
164 |
|
170 |
|
165 |
|
171 |
|
166 |
|
172 |
|
167 |
|
|
|
|
173 |
|
|
168 |
|
174 |
|
|
175 |
|
|
|
176 |
|
|
169 |
|
177 |
|
170 |
|
178 |
|
171 |
|
179 |
|
|
|
||
176 |
|
184 |
|
177 |
|
185 |
|
178 |
|
186 |
|
179 |
|
|
|
|
187 |
|
|
|
188 |
|
|
180 |
|
189 |
|
181 |
|
190 |
|
|
191 |
|
|
182 |
|
192 |
|
183 |
|
193 |
|
184 |
|
194 |
|
|
|
||
190 |
|
200 |
|
191 |
|
201 |
|
192 |
|
202 |
|
193 |
|
|
|
|
203 |
|
|
|
204 |
|
|
194 |
|
205 |
|
195 |
|
206 |
|
196 |
|
|
|
|
207 |
|
|
|
208 |
|
|
|
209 |
|
|
|
210 |
|
|
|
211 |
|
|
|
212 |
|
|
|
213 |
|
|
197 |
|
214 |
|
198 |
|
|
|
199 |
|
215 |
|
200 |
|
216 |
|
201 |
|
217 |
|
202 |
|
218 |
|
203 |
|
|
|
204 |
|
219 |
|
205 |
|
220 |
|
206 |
|
|
|
207 |
|
221 |
|
208 |
|
|
|
209 |
|
|
|
210 |
|
|
|
|
222 |
|
|
211 |
|
223 |
|
212 |
|
224 |
|
213 |
|
|
|
214 |
|
|
|
215 |
|
225 |
|
216 |
|
226 |
|
217 |
|
227 |
|
|
|
||
53 |
|
53 |
|
54 |
|
54 |
|
55 |
|
55 |
|
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
56 |
|
59 |
|
57 |
|
60 |
|
58 |
|
61 |
|
|
|
||
248 |
|
251 |
|
249 |
|
252 |
|
250 |
|
253 |
|
251 |
|
|
|
|
254 |
|
|
|
255 |
|
|
252 |
|
256 |
|
253 |
|
257 |
|
254 |
|
258 |
|
|
|
||
259 |
|
259 |
|
260 |
|
260 |
|
261 |
|
261 |
|
262 |
|
|
|
263 |
|
|
|
264 |
|
|
|
265 |
|
|
|
266 |
|
|
|
267 |
|
|
|
|
262 |
|
|
|
263 |
|
|
|
264 |
|
|
|
265 |
|
|
|
266 |
|
|
|
267 |
|
|
|
268 |
|
|
268 |
|
269 |
|
269 |
|
270 |
|
270 |
|
271 |
|
|
|
||
|
1 |
|
|
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
||
|
1 |
|
|
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
||
|
1 |
|
|
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|