A previous commit tried to eliminate a panic when reading an empty profile by stopping support for profiles with no samples. That is unnecessary and it can obstruct some testing. The panic was caused by the legacy parser returning a nil profile and no error when processing an empty profile. Detect that situation and generate a proper profile instead. Tested by running 'pprof /dev/null' Add testcase for profile parsing errors
|
|
||
107 |
|
107 |
|
108 |
|
108 |
|
109 |
|
109 |
|
110 |
|
|
|
111 |
|
|
|
112 |
|
|
|
113 |
|
|
|
114 |
|
110 |
|
115 |
|
111 |
|
116 |
|
112 |
|
|
|
||
446 |
|
446 |
|
447 |
|
447 |
|
448 |
|
448 |
|
449 |
|
|
|
|
449 |
|
|
|
450 |
|
|
|
451 |
|
|
|
452 |
|
|
450 |
|
453 |
|
451 |
|
454 |
|
452 |
|
455 |
|
|
|
||
660 |
|
663 |
|
661 |
|
664 |
|
662 |
|
665 |
|
663 |
|
|
|
|
666 |
|
|
|
667 |
|
|
|
668 |
|
|
|
669 |
|
|
664 |
|
670 |
|
665 |
|
671 |
|
666 |
|
672 |
|
|
|
||
912 |
|
918 |
|
913 |
|
919 |
|
914 |
|
920 |
|
915 |
|
|
|
916 |
|
|
|
|
921 |
|
|
|
922 |
|
|
917 |
|
923 |
|
918 |
|
924 |
|
919 |
|
925 |
|
|
|
||
21 |
|
21 |
|
22 |
|
22 |
|
23 |
|
23 |
|
|
24 |
|
|
24 |
|
25 |
|
25 |
|
26 |
|
26 |
|
27 |
|
|
|
||
90 |
|
91 |
|
91 |
|
92 |
|
92 |
|
93 |
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
|
|
|
108 |
|
|
|
109 |
|
|
|
110 |
|
|
93 |
|
111 |
|
94 |
|
112 |
|
95 |
|
113 |
|