Chromium Code Reviews| Index: tools/ignition/linux_perf_report.py |
| diff --git a/tools/ignition/linux_perf_report.py b/tools/ignition/linux_perf_report.py |
| index fbf562c2abe9b699de7feb47b09446c90c9b19a2..2d901d518625ace5ebb20883219358fd09ac2d0c 100755 |
| --- a/tools/ignition/linux_perf_report.py |
| +++ b/tools/ignition/linux_perf_report.py |
| @@ -97,7 +97,7 @@ def collapsed_callchains_generator(perf_stream, show_all=False, |
| if skip_until_end_of_chain: |
| continue |
| - symbol = line.split(" ", 1)[1] |
| + symbol = line.split(" ", 1)[1].split("+", 1)[0] |
|
rmcilroy
2016/07/08 15:17:57
nit - add a comment on that the split("+... part i
Stefano Sanfilippo
2016/07/08 15:57:57
Done.
|
| if not show_full_signatures: |
| symbol = strip_function_parameters(symbol) |
| current_chain.append(symbol) |
| @@ -204,7 +204,7 @@ def parse_command_line(): |
| def main(): |
| program_options = parse_command_line() |
| - perf = subprocess.Popen(["perf", "script", "-f", "ip,sym", |
| + perf = subprocess.Popen(["perf", "script", "--fields", "ip,sym", |
| "-i", program_options.perf_filename], |
| stdout=subprocess.PIPE) |