* Create a fake mapping for profile.proto profiles If a profile has mappings but no profiles, pprof may be unable to symbolize it offline, as it uses the mappings to keep track of which locations need symbolization. This fixes #120. Added the test, verified it fails on Mac with Go 1.7 before the fix, and passes with the fix. The test is done by augmenting the existing test for handling https+insecure:// schema in URLs. This is a bit vague but I figured that this test needed an updated anyway since as we moved it recently we stopped exercising the symbolization as part of the test which was its original intention in fixing #94. Can split the tests if things do look too ugly. * Fix the test to include the failed regex matching error in the message.
|
|
||
373 |
|
373 |
|
374 |
|
374 |
|
375 |
|
375 |
|
|
376 |
|
|
|
377 |
|
|
|
378 |
|
|
|
379 |
|
|
|
380 |
|
|
|
381 |
|
|
|
382 |
|
|
|
383 |
|
|
|
384 |
|
|
|
385 |
|
|
|
386 |
|
|
376 |
|
387 |
|
377 |
|
388 |
|
378 |
|
389 |
|
379 |
|
|
|
380 |
|
|
|
381 |
|
|
|
382 |
|
|
|
383 |
|
|
|
384 |
|
|
|
385 |
|
|
|
386 |
|
|
|
387 |
|
|
|
388 |
|
|
|
389 |
|
|
|
390 |
|
390 |
|
391 |
|
391 |
|
392 |
|
392 |
|
|
|
||
35 |
|
35 |
|
36 |
|
36 |
|
37 |
|
37 |
|
|
38 |
|
|
38 |
|
39 |
|
39 |
|
40 |
|
|
41 |
|
|
40 |
|
42 |
|
41 |
|
43 |
|
42 |
|
44 |
|
|
|
||
275 |
|
277 |
|
276 |
|
278 |
|
277 |
|
279 |
|
278 |
|
|
|
279 |
|
|
|
|
280 |
|
|
|
281 |
|
|
|
282 |
|
|
|
283 |
|
|
|
284 |
|
|
|
285 |
|
|
|
286 |
|
|
|
287 |
|
|
|
288 |
|
|
|
289 |
|
|
|
290 |
|
|
|
291 |
|
|
|
292 |
|
|
280 |
|
293 |
|
281 |
|
294 |
|
282 |
|
295 |
|
283 |
|
296 |
|
284 |
|
297 |
|
285 |
|
298 |
|
|
299 |
|
|
|
300 |
|
|
|
301 |
|
|
|
302 |
|
|
|
303 |
|
|
|
304 |
|
|
|
305 |
|
|
|
306 |
|
|
|
307 |
|
|
|
308 |
|
|
|
309 |
|
|
|
310 |
|
|
286 |
|
311 |
|
287 |
|
312 |
|
288 |
|
313 |
|
|
|
||
22 |
|
22 |
|
23 |
|
23 |
|
24 |
|
24 |
|
|
25 |
|
|
25 |
|
26 |
|
26 |
|
27 |
|
27 |
|
28 |
|
|
|
||
71 |
|
72 |
|
72 |
|
73 |
|
73 |
|
74 |
|
74 |
|
|
|
|
75 |
|
|
75 |
|
76 |
|
76 |
|
|
|
77 |
|
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
78 |
|
80 |
|
79 |
|
81 |
|
80 |
|
82 |
|
|
|
||
89 |
|
91 |
|
90 |
|
92 |
|
91 |
|
93 |
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
92 |
|
102 |
|
93 |
|
103 |
|
94 |
|
104 |
|