diff options
author | Namhyung Kim <namhyung@kernel.org> | 2014-02-09 21:20:10 -0500 |
---|---|---|
committer | Jiri Olsa <jolsa@redhat.com> | 2014-04-16 11:16:04 -0400 |
commit | 105eb30f18197a217695eac4ddf87526f2cba867 (patch) | |
tree | 953b06227760682247e74f4979e32f6bac678569 /tools/perf | |
parent | 0b93da1756df4fe930ee0220a6addce263a6e0ab (diff) |
perf ui/tui: Add 'F' hotkey to toggle percentage output
Add 'F' hotkey to toggle relative and absolute percentage of filtered
entries.
Suggested-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1397145720-8063-7-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/ui/browsers/hists.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index 7ad11477a0f5..4d416984c59d 100644 --- a/tools/perf/ui/browsers/hists.c +++ b/tools/perf/ui/browsers/hists.c | |||
@@ -1389,6 +1389,7 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events, | |||
1389 | "C Collapse all callchains\n" \ | 1389 | "C Collapse all callchains\n" \ |
1390 | "d Zoom into current DSO\n" \ | 1390 | "d Zoom into current DSO\n" \ |
1391 | "E Expand all callchains\n" \ | 1391 | "E Expand all callchains\n" \ |
1392 | "F Toggle percentage of filtered entries\n" \ | ||
1392 | 1393 | ||
1393 | /* help messages are sorted by lexical order of the hotkey */ | 1394 | /* help messages are sorted by lexical order of the hotkey */ |
1394 | const char report_help[] = HIST_BROWSER_HELP_COMMON | 1395 | const char report_help[] = HIST_BROWSER_HELP_COMMON |
@@ -1494,6 +1495,9 @@ static int perf_evsel__hists_browse(struct perf_evsel *evsel, int nr_events, | |||
1494 | if (env->arch) | 1495 | if (env->arch) |
1495 | tui__header_window(env); | 1496 | tui__header_window(env); |
1496 | continue; | 1497 | continue; |
1498 | case 'F': | ||
1499 | symbol_conf.filter_relative ^= 1; | ||
1500 | continue; | ||
1497 | case K_F1: | 1501 | case K_F1: |
1498 | case 'h': | 1502 | case 'h': |
1499 | case '?': | 1503 | case '?': |