aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/browser.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2012-05-03 12:12:49 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-05-03 12:12:49 -0400
commit83b1f2aad46c4af7df5ba6071fbba2d5cb025985 (patch)
tree426fbdad6428787aaea05df9a27f542be8ae3600 /tools/perf/ui/browser.c
parent4656cca11b07a13785aa8574ed4db6c540e48ed8 (diff)
perf annotate browser: More clearly separate columns
The first column (columns in the near future) are for the per line event overhead(s), that only appear when they are not zero. To clearly separate it, add back a solid vertical line, with just one colour, not influenced by the per line overheads. Then have the addr/offset column, then optionally the dynamic (static in the future) jump->target arrows, if 'j' enables it. Then the instructions. Requested-by: Peter Zijlstra <peterz@infradead.org> Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-r415t4sps0oyr9y8kd9j7clz@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/browser.c')
-rw-r--r--tools/perf/ui/browser.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/perf/ui/browser.c b/tools/perf/ui/browser.c
index b075e09bfb54..cde4d0f0ddb9 100644
--- a/tools/perf/ui/browser.c
+++ b/tools/perf/ui/browser.c
@@ -611,7 +611,7 @@ void ui_browser__write_graph(struct ui_browser *browser __used, int graph)
611 611
612static void __ui_browser__line_arrow_up(struct ui_browser *browser, 612static void __ui_browser__line_arrow_up(struct ui_browser *browser,
613 unsigned int column, 613 unsigned int column,
614 u64 start, u64 end, int start_width) 614 u64 start, u64 end)
615{ 615{
616 unsigned int row, end_row; 616 unsigned int row, end_row;
617 617
@@ -622,7 +622,7 @@ static void __ui_browser__line_arrow_up(struct ui_browser *browser,
622 ui_browser__gotorc(browser, row, column); 622 ui_browser__gotorc(browser, row, column);
623 SLsmg_write_char(SLSMG_LLCORN_CHAR); 623 SLsmg_write_char(SLSMG_LLCORN_CHAR);
624 ui_browser__gotorc(browser, row, column + 1); 624 ui_browser__gotorc(browser, row, column + 1);
625 SLsmg_draw_hline(start_width); 625 SLsmg_draw_hline(2);
626 626
627 if (row-- == 0) 627 if (row-- == 0)
628 goto out; 628 goto out;
@@ -651,7 +651,7 @@ out:
651 651
652static void __ui_browser__line_arrow_down(struct ui_browser *browser, 652static void __ui_browser__line_arrow_down(struct ui_browser *browser,
653 unsigned int column, 653 unsigned int column,
654 u64 start, u64 end, int start_width) 654 u64 start, u64 end)
655{ 655{
656 unsigned int row, end_row; 656 unsigned int row, end_row;
657 657
@@ -662,7 +662,7 @@ static void __ui_browser__line_arrow_down(struct ui_browser *browser,
662 ui_browser__gotorc(browser, row, column); 662 ui_browser__gotorc(browser, row, column);
663 SLsmg_write_char(SLSMG_ULCORN_CHAR); 663 SLsmg_write_char(SLSMG_ULCORN_CHAR);
664 ui_browser__gotorc(browser, row, column + 1); 664 ui_browser__gotorc(browser, row, column + 1);
665 SLsmg_draw_hline(start_width); 665 SLsmg_draw_hline(2);
666 666
667 if (row++ == 0) 667 if (row++ == 0)
668 goto out; 668 goto out;
@@ -690,12 +690,12 @@ out:
690} 690}
691 691
692void __ui_browser__line_arrow(struct ui_browser *browser, unsigned int column, 692void __ui_browser__line_arrow(struct ui_browser *browser, unsigned int column,
693 u64 start, u64 end, int start_width) 693 u64 start, u64 end)
694{ 694{
695 if (start > end) 695 if (start > end)
696 __ui_browser__line_arrow_up(browser, column, start, end, start_width); 696 __ui_browser__line_arrow_up(browser, column, start, end);
697 else 697 else
698 __ui_browser__line_arrow_down(browser, column, start, end, start_width); 698 __ui_browser__line_arrow_down(browser, column, start, end);
699} 699}
700 700
701void ui_browser__init(void) 701void ui_browser__init(void)