perf annotate: Make local period the default percent type
authorJiri Olsa <jolsa@kernel.org>
Sat, 4 Aug 2018 13:05:18 +0000 (15:05 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 8 Aug 2018 18:55:52 +0000 (15:55 -0300)
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 <jolsa@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/20180804130521.11408-18-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c

index 850958bb613ac71bf13fa68655117cf625909305..05d15629afd09952a709c9d3406bd2f74ef276a5 100644 (file)
@@ -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;