perf annotate: Cycle thru sorted lines with samples
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 10 Aug 2010 18:14:53 +0000 (15:14 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 10 Aug 2010 18:14:53 +0000 (15:14 -0300)
commitf1e9214cc99644101d957c5c660946c6f2f86d7c
tree50fa9e5b07134cfc53e09aa2d8d79695a34766d9
parent9e22d6377ce6f31b1cc0bff16daeda2780495061
perf annotate: Cycle thru sorted lines with samples

The annotate TUI now starts centered on the line with most samples, i.e.
the hottest line in the annotated function. Pressing TAB will center on
the second hottest function and so on. Shift+TAB goes in the other
direction.

This way one can more easily sift thru the function hotspots.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/ui/browsers/annotate.c