diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-10-26 06:19:05 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-10-26 11:13:03 -0400 |
commit | 0458122db0a2ebd1d3779469cb6184d8b195be09 (patch) | |
tree | 52d35e0ccfd1559cb300f71dbf453f3e61e4acbb /tools/perf | |
parent | 13d8f96c6c98532567b7620210a41d57dbc2039f (diff) |
perf ui browser: No need to switch char sets that often
Just before and after the loop.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
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-0lh91cedngyg1pqarbky5vn7@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/util/ui/browser.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/perf/util/ui/browser.c b/tools/perf/util/ui/browser.c index 29c68aee00df..8607efa13564 100644 --- a/tools/perf/util/ui/browser.c +++ b/tools/perf/util/ui/browser.c | |||
@@ -231,13 +231,15 @@ static void ui_browser__scrollbar_set(struct ui_browser *browser) | |||
231 | (browser->nr_entries - 1)); | 231 | (browser->nr_entries - 1)); |
232 | } | 232 | } |
233 | 233 | ||
234 | SLsmg_set_char_set(1); | ||
235 | |||
234 | while (h < height) { | 236 | while (h < height) { |
235 | ui_browser__gotorc(browser, row++, col); | 237 | ui_browser__gotorc(browser, row++, col); |
236 | SLsmg_set_char_set(1); | 238 | SLsmg_write_char(h == pct ? SLSMG_DIAMOND_CHAR : SLSMG_CKBRD_CHAR); |
237 | SLsmg_write_char(h == pct ? SLSMG_DIAMOND_CHAR : SLSMG_BOARD_CHAR); | ||
238 | SLsmg_set_char_set(0); | ||
239 | ++h; | 239 | ++h; |
240 | } | 240 | } |
241 | |||
242 | SLsmg_set_char_set(0); | ||
241 | } | 243 | } |
242 | 244 | ||
243 | static int __ui_browser__refresh(struct ui_browser *browser) | 245 | static int __ui_browser__refresh(struct ui_browser *browser) |