From: tip-bot for Namhyung Kim <tipbot@zytor.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org,
tglx@linutronix.de, namhyung@kernel.org, jolsa@redhat.com
Subject: [tip:perf/core] perf ui/tui: Add 'F' hotkey to toggle percentage output
Date: Thu, 17 Apr 2014 02:56:34 -0700 [thread overview]
Message-ID: <tip-105eb30f18197a217695eac4ddf87526f2cba867@git.kernel.org> (raw)
In-Reply-To: <1397145720-8063-7-git-send-email-namhyung@kernel.org>
Commit-ID: 105eb30f18197a217695eac4ddf87526f2cba867
Gitweb: http://git.kernel.org/tip/105eb30f18197a217695eac4ddf87526f2cba867
Author: Namhyung Kim <namhyung@kernel.org>
AuthorDate: Mon, 10 Feb 2014 11:20:10 +0900
Committer: Jiri Olsa <jolsa@redhat.com>
CommitDate: Wed, 16 Apr 2014 17:16:04 +0200
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>
---
tools/perf/ui/browsers/hists.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c
index 7ad1147..4d41698 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 '?':
next prev parent reply other threads:[~2014-04-17 9:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-10 16:01 [PATCHSET 0/7] perf tools: Update on filtered entries' percentage output (v8) Namhyung Kim
2014-04-10 16:01 ` [PATCH 1/7] perf hists: Add support for showing relative percentage Namhyung Kim
2014-04-17 9:55 ` [tip:perf/core] " tip-bot for Namhyung Kim
2014-04-10 16:01 ` [PATCH 2/7] perf report: Add --percentage option Namhyung Kim
2014-04-17 9:55 ` [tip:perf/core] " tip-bot for Namhyung Kim
2014-04-10 16:01 ` [PATCH 3/7] perf top: " Namhyung Kim
2014-04-17 9:55 ` [tip:perf/core] " tip-bot for Namhyung Kim
2014-04-10 16:01 ` [PATCH 4/7] perf diff: " Namhyung Kim
2014-04-17 9:56 ` [tip:perf/core] " tip-bot for Namhyung Kim
2014-04-10 16:01 ` [PATCH 5/7] perf tools: Add hist.percentage config option Namhyung Kim
2014-04-17 9:56 ` [tip:perf/core] " tip-bot for Namhyung Kim
2014-04-10 16:01 ` [PATCH 6/7] perf ui/tui: Add 'F' hotkey to toggle percentage output Namhyung Kim
2014-04-17 9:56 ` tip-bot for Namhyung Kim [this message]
2014-04-10 16:02 ` [PATCH 7/7] perf tools: Show absolute percentage by default Namhyung Kim
2014-04-17 9:56 ` [tip:perf/core] " tip-bot for Namhyung Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-105eb30f18197a217695eac4ddf87526f2cba867@git.kernel.org \
--to=tipbot@zytor.com \
--cc=hpa@zytor.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=namhyung@kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).