]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
perf report: Make the output more compact
authorArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 11 Jul 2009 15:18:35 +0000 (12:18 -0300)
committerIngo Molnar <mingo@elte.hu>
Sat, 11 Jul 2009 17:20:26 +0000 (19:20 +0200)
commit021191b35cdfb1b5ee6e78ed5ae010114a40902c
treec683b7a182373158842a50e9ff3ade2424d5eeb8
parent27d0fd410c3cee00ece2e55f4354a7a9ec1a6a6a
perf report: Make the output more compact

When we filter by column content we may end up with a column
that has the same value for all the lines. So remove that
column and tell its unique value on the top, as a comment.

Example:

  [acme@doppio pahole]$  perf report --sort comm,dso,symbol -d ./build/libdwarves.so.1.0.0 -C pahole | head -15
  # dso: ./build/libdwarves.so.1.0.0
  # comm: pahole
  # Samples: 58409
  #
  # Overhead  Symbol
  # ........  ......
  #
      20.93%  [.] tag__recode_dwarf_type
      14.94%  [.] namespace__recode_dwarf_types
      10.38%  [.] cu__table_add_tag
       6.69%  [.] __die__process_tag
       5.05%  [.] die__process_function
       4.70%  [.] list__for_all_tags
       3.68%  [.] tag__init
       3.48%  [.] die__create_new_parameter
  [acme@doppio pahole]$

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <1247325517-12272-3-git-send-email-acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-report.c