[lkml]   [2018]   [Aug]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject[PATCH 00/20] perf annotate: Make symbol__annotate_fprintf2 local
Stephane asked for key/option switch between local/global
percentage in annotation output/browser [1]. Local means
% within symbol, global within the whole perf data.

Adding the support to specify this by new --precent-type
option added for perf annotate and report.

Also adding 'p' key binding to annotation browser to change
between local/global percentages.

Also available in:



Jiri Olsa (20):
perf annotate: Make symbol__annotate_fprintf2 local
perf annotate: Make annotation_line__max_percent static
perf annotate: Get rid of annotation__scnprintf_samples_period
perf annotate: Rename struct annotation_line::samples* to data*
perf annotate: Rename local sample variables to data
perf annotate: Rename hist to sym_hist in annotation__calc_percent
perf annotate: Loop group events directly in annotation__calc_percent
perf annotate: Switch struct annotation_data::percent to array
perf annotate: Add PERCENT_HITS_GLOBAL percent value
perf annotate: Add PERCENT_PERIOD_LOCAL percent value
perf annotate: Add PERCENT_PERIOD_GLOBAL percent value
perf annotate: Add percent_type to struct annotation_options
perf annotate: Pass struct annotation_options to symbol__calc_lines
perf annotate: Pass struct annotation_options to map_symbol__annotation_dump
perf annotate: Pass browser percent_type in annotate_browser__calc_percent
perf annotate: Add support to togle percent type
perf annotate: Make local period the default percent type
perf annotate: Display percent type in stdio output
perf annotate: Add --percent-type option
perf report: Add --percent-type option

tools/perf/Documentation/perf-annotate.txt | 9 ++++
tools/perf/Documentation/perf-report.txt | 9 ++++
tools/perf/builtin-annotate.c | 4 ++
tools/perf/builtin-report.c | 3 ++
tools/perf/ui/browsers/annotate.c | 81 +++++++++++++++++++++++++-------
tools/perf/util/annotate.c | 302 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------------------------
tools/perf/util/annotate.h | 55 ++++++++++++++++------
tools/perf/util/evsel.h | 7 +++
8 files changed, 319 insertions(+), 151 deletions(-)

 \ /
  Last update: 2018-08-04 15:05    [W:4.497 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site