aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2018-08-04 13:05:18 +0000
committerArnaldo Carvalho de Melo <[email protected]>2018-08-08 18:55:52 +0000
commitaddba8b66f9101b0e55a151fc543ff35990bc8ef (patch)
tree5d43b6d9ce2aaf704b05cbfe55aab13e59a66edb
parentperf annotate: Add support to toggle percent type (diff)
downloadkernel-addba8b66f9101b0e55a151fc543ff35990bc8ef.tar.gz
kernel-addba8b66f9101b0e55a151fc543ff35990bc8ef.zip
perf annotate: Make local period the default percent type
Currently we display the percentages in annotation output based on number of samples hits. Switching it to period based percentage by default, because it corresponds more to the time spent on the line. Signed-off-by: Jiri Olsa <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: David Ahern <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r--tools/perf/util/annotate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c
index 850958bb613a..05d15629afd0 100644
--- a/tools/perf/util/annotate.c
+++ b/tools/perf/util/annotate.c
@@ -49,7 +49,7 @@ struct annotation_options annotation__default_options = {
.jump_arrows = true,
.annotate_src = true,
.offset_level = ANNOTATION__OFFSET_JUMP_TARGETS,
- .percent_type = PERCENT_HITS_LOCAL,
+ .percent_type = PERCENT_PERIOD_LOCAL,
};
static regex_t file_lineno;