aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAndi Kleen <[email protected]>2015-07-18 08:24:50 -0700
committerArnaldo Carvalho de Melo <[email protected]>2015-08-06 16:36:12 -0300
commit30e863bb6f708c0abd422fbb0e6b295f5ee6407b (patch)
tree61f2ba3ee89bb1162a3e2f4275194589c1ae97f0 /tools/perf/scripts/python/export-to-postgresql.py
parent57849998e2cd24d50295076a1bbd2f029e2d7c38 (diff)
perf annotate: Compute IPC and basic block cycles
Compute the IPC and the basic block cycles for the annotate display. IPC is computed by counting the instructions, and then dividing the accounted cycles by that count. The actual IPC computation can only be done at annotate time, because we need to parse the objdump output first to know the number of instructions in the basic block. The cycles/IPC are also put into the perf function annotation so that the display code can show them. Again basic block overlaps are not handled, with the longest winning, but there are some heuristics to hide the IPC when the longest is not the most common. v2: Compute IPC correctly. Signed-off-by: Andi Kleen <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions