myzhan / gperftools

Automatically exported from code.google.com/p/gperftools
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

pprof doesn't accept spaces in library paths #635

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run a cpu profile
2. Use pprof --text to display the results

What is the expected output? What do you see instead?
I expect all function names to be visible. Instead, some have pointers instead 
of names.

What version of the product are you using? On what operating system?
Version 2.0, Linux.

Please provide any additional information below.

I fixed this locally by modifying the 'ParseLibraries' function in 'pprof' to 
accept spaces:

if ($l =~ 
/^($h)-($h)\s+..x.\s+($h)\s+\S+:\S+\s+\d+\s+([\S|\s]+\.(so|dll|dylib|bundle)((\.
\d+)+\w*(\.\d+){0,3})?)$/i) {

Notice the [\S|\s]+ instead of the original \S+

Original issue reported on code.google.com by mich...@sebesbefut.com on 22 Jul 2014 at 2:38

GoogleCodeExporter commented 9 years ago
applied. Thanks.

Original comment by alkondratenko on 30 Jul 2014 at 10:40