linux/tools/perf/ui
Andi Kleen f8f4aaead5 perf annotate: Finally display IPC and cycle accounting
Add two new columns to the annotate display and display the average
cycles and the compute IPC if available.

When the LBR was not in any branch mode the IPC computation is
automatically disabled. We still display the cycle information.

Example output (with made up numbers):

The second column is the IPC and third average cycles.

                 │    __attribute__((noinline)) f2()
                 │    {
  5.15  0.07     │       push   %rbp
  0.01  0.07     │       mov    %rsp,%rbp
                 │            c = a / b;
  9.87  0.07     │       mov    a,%eax
        0.07     │       mov    b,%ecx
        0.07     │       cltd
  4.92  0.07  123│       idiv   %ecx
 70.79  0.07     │       mov    %eax,__TMC_END__
                 │    }
  9.25  0.07     │       pop    %rbp
  0.01  0.07  123│     ← retq

v2: Fix display problems.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1437233094-12844-7-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2015-08-06 16:37:22 -03:00
..
browsers perf annotate: Finally display IPC and cycle accounting 2015-08-06 16:37:22 -03:00
gtk perf build: Add gtk objects building 2015-02-12 11:49:12 -03:00
stdio
tui perf tools: Make Ctrl-C stop processing on TUI 2015-05-29 12:49:00 -03:00
Build perf build: Add slang objects building 2015-02-12 11:48:13 -03:00
browser.c
browser.h
helpline.c
helpline.h
hist.c perf tools: Pass struct perf_hpp_fmt to its callbacks 2015-01-21 13:24:34 -03:00
keysyms.h
libslang.h
progress.c
progress.h perf tools: Remove EOL whitespaces 2015-01-21 13:24:31 -03:00
setup.c
ui.h
util.c
util.h