diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-02-22 10:02:07 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-02-22 10:02:07 -0500 |
commit | c97cf42219b7b6037d2f96c27a5f114f2383f828 (patch) | |
tree | 2180e3eae063a217d1681074a813eed42ad91a86 /tools/perf/util/annotate.h | |
parent | 8635bf6ea3402154eec64763e6ed14972013c1c1 (diff) |
perf top: Live TUI Annotation
Now one has just to press the right key, 'a' or Enter on the main 'perf
top --tui' screen to live annotate the symbol under the cursor.
The annotate window starts centered on the hottest line (the one with
most samples so far) then TAB and shift+TAB can be used to go to the
prev/next hot line.
Pressing 'H' at any point will center again the screen on the hottest
line.
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/annotate.h')
-rw-r--r-- | tools/perf/util/annotate.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h index e848803fcd48..c2c286896801 100644 --- a/tools/perf/util/annotate.h +++ b/tools/perf/util/annotate.h | |||
@@ -90,12 +90,14 @@ int symbol__tty_annotate(struct symbol *sym, struct map *map, int evidx, | |||
90 | 90 | ||
91 | #ifdef NO_NEWT_SUPPORT | 91 | #ifdef NO_NEWT_SUPPORT |
92 | static inline int symbol__tui_annotate(struct symbol *sym __used, | 92 | static inline int symbol__tui_annotate(struct symbol *sym __used, |
93 | struct map *map __used, int evidx __used) | 93 | struct map *map __used, |
94 | int evidx __used, int refresh __used) | ||
94 | { | 95 | { |
95 | return 0; | 96 | return 0; |
96 | } | 97 | } |
97 | #else | 98 | #else |
98 | int symbol__tui_annotate(struct symbol *sym, struct map *map, int evidx); | 99 | int symbol__tui_annotate(struct symbol *sym, struct map *map, int evidx, |
100 | int refresh); | ||
99 | #endif | 101 | #endif |
100 | 102 | ||
101 | #endif /* __PERF_ANNOTATE_H */ | 103 | #endif /* __PERF_ANNOTATE_H */ |