linux-stable-rt/tools/perf/util
Arnaldo Carvalho de Melo 3997d3776a perf hist: Don't fprintf the callgraph unconditionally
[root@doppio ~]# perf report -i newt.data | head -10
  # Samples: 11999679868
  #
  # Overhead  Command                  Shared Object  Symbol
  # ........  .......  .............................  ......
  #
      63.61%     perf  libslang.so.2.1.4              [.] SLsmg_write_chars
       6.30%     perf  perf                           [.] symbols__find
       2.19%     perf  libnewt.so.0.52.10             [.] newtListboxAppendEntry
       2.08%     perf  libslang.so.2.1.4              [.] SLsmg_write_chars@plt
       1.99%     perf  libc-2.10.2.so                 [.] _IO_vfprintf_internal
  [root@doppio ~]#

Not good, the newt form for report works, but slang has to eat
the cost of the additional callgraph lines everytime it prints a
line, and the callgraph doesn't appear on the screen, so move
the callgraph printing to a separate function and don't use it
in newt.c.

Newt tree widgets are being investigated to properly support
callgraphs, but till that gets merged, lets remove this huge
overhead and show at least the symbol overheads for a callgraph
rich perf.data with good performance.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <1268408808-13595-2-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2010-03-12 20:31:53 +01:00
..
include
scripting-engines
PERF-VERSION-GEN
abspath.c
alias.c
build-id.c
build-id.h
cache.h perf report: Implement initial UI using newt 2010-03-12 10:28:46 +01:00
callchain.c
callchain.h
color.c perf report: Implement initial UI using newt 2010-03-12 10:28:46 +01:00
color.h
config.c
cpumap.c
cpumap.h
ctype.c
debug.c perf report: Implement initial UI using newt 2010-03-12 10:28:46 +01:00
debug.h perf report: Implement initial UI using newt 2010-03-12 10:28:46 +01:00
debugfs.c
debugfs.h
environment.c
event.c
event.h
exec_cmd.c
exec_cmd.h
generate-cmdlist.sh
header.c
header.h
help.c
help.h
hist.c perf hist: Don't fprintf the callgraph unconditionally 2010-03-12 20:31:53 +01:00
hist.h perf report: Implement initial UI using newt 2010-03-12 10:28:46 +01:00
levenshtein.c
levenshtein.h
map.c
map.h
newt.c perf newt: Use newtGetScreenSize 2010-03-12 20:31:53 +01:00
pager.c
parse-events.c
parse-events.h
parse-options.c
parse-options.h
path.c
probe-event.c
probe-event.h
probe-finder.c
probe-finder.h
quote.c
quote.h
run-command.c
run-command.h
session.c
session.h perf report: Implement initial UI using newt 2010-03-12 10:28:46 +01:00
sigchain.c
sigchain.h
sort.c
sort.h
strbuf.c
strbuf.h
string.c
string.h
strlist.c
strlist.h
svghelper.c
svghelper.h
symbol.c
symbol.h
thread.c
thread.h
trace-event-info.c
trace-event-parse.c
trace-event-read.c
trace-event-scripting.c
trace-event.h
types.h
usage.c
util.c
util.h
values.c
values.h
wrapper.c