perf ui/tui: Add 'F' hotkey to toggle percentage output - kernel/git/torvalds/linux.git (original) (raw)
author | Namhyung Kim namhyung@kernel.org | 2014-02-10 11:20:10 +0900 |
---|---|---|
committer | Jiri Olsa jolsa@redhat.com | 2014-04-16 17:16:04 +0200 |
commit | 105eb30f18197a217695eac4ddf87526f2cba867 (patch) | |
tree | 953b06227760682247e74f4979e32f6bac678569 | |
parent | 0b93da1756df4fe930ee0220a6addce263a6e0ab (diff) | |
download | linux-105eb30f18197a217695eac4ddf87526f2cba867.tar.gz |
perf ui/tui: Add 'F' hotkey to toggle percentage output
-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 7ad11477a0f5b3..4d416984c59d18 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,
"C Collapse all callchains\n" \
"d Zoom into current DSO\n" \
"E Expand all callchains\n" \
+ "F Toggle percentage of filtered entries\n" \
/* help messages are sorted by lexical order of the hotkey */
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,
if (env->arch)
tui__header_window(env);
continue;
+ case 'F':
+ symbol_conf.filter_relative ^= 1;
+ continue;
case K_F1:
case 'h':
case '?':