perf annotate: shorten helpline so it fits in visible space
PATCH 1/1 perf annotate: shorten helpline so it fits in visible space
Additional toggles have pushed the help line out of view on a modestly sized terminal (120 columns wide). Shorten it to just reminders.
Signed-off-by David Ahern <[email protected]>
--- tools/perf/ui/browsers/annotate.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
tools/perf/ui/browsers/annotate.c +3 -3
@@ -491,9 +491,9 @@ static int annotate_browser__run(struct annotate_browser *self, int evidx,struct map_symbol *ms = self->b.priv;struct symbol *sym = ms->sym;const char *help ="<-/ESC: Exit, TAB/shift+TAB: Cycle hot lines, " -"H: Go to hottest line, ->/ENTER: Line action, " -"O: Toggle offset view, " -"S: Toggle source code view" ; +"H: Hottest line, ->/ENTER: Line action, " +"O: Offset view, " +"S: Source view" ;int key;if (ui_browser__show (&self->b, sym->name, help) <0 )
Signature · 1 line
1.7.5.4
Commit-ID: f6c1be2711333b40d7940ff87e3509b4cd278195 Gitweb: http://git.kernel.org/tip/f6c1be2711333b40d7940ff87e3509b4cd278195 Author: David Ahern <[email protected]> AuthorDate: Tue, 8 May 2012 15:01:19 -0600 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Wed, 9 May 2012 12:02:36 -0300
perf annotate: shorten helpline so it fits in visible space
Additional toggles have pushed the help line out of view on a modestly sized terminal (120 columns wide). Shorten it to just reminders.
Signed-off-by David Ahern <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/ui/browsers/annotate.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
tools/perf/ui/browsers/annotate.c +3 -3
@@ -491,9 +491,9 @@ static int annotate_browser__run(struct annotate_browser *self, int evidx,struct map_symbol *ms = self->b.priv;struct symbol *sym = ms->sym;const char *help ="<-/ESC: Exit, TAB/shift+TAB: Cycle hot lines, " -"H: Go to hottest line, ->/ENTER: Line action, " -"O: Toggle offset view, " -"S: Toggle source code view" ; +"H: Hottest line, ->/ENTER: Line action, " +"O: Offset view, " +"S: Source view" ;int key;if (ui_browser__show (&self->b, sym->name, help) <0 )