perf hists browser: Use perf_hpp__format functions
Override hpp->color functions for TUI. Because line coloring is done outside of the function, it just sets the percent value and pass it. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1346640790-17197-5-git-send-email-namhyung@kernel.org [ committer note: Keep previous layout by showing the overhead at column 1 ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Цей коміт міститься в:

зафіксовано
Arnaldo Carvalho de Melo

джерело
7e62ef44e8
коміт
f5951d56a2
@@ -15,6 +15,8 @@ static volatile int ui__need_resize;
|
||||
|
||||
extern struct perf_error_ops perf_tui_eops;
|
||||
|
||||
extern void hist_browser__init_hpp(void);
|
||||
|
||||
void ui__refresh_dimensions(bool force)
|
||||
{
|
||||
if (force || ui__need_resize) {
|
||||
@@ -124,6 +126,8 @@ int ui__init(void)
|
||||
signal(SIGTERM, ui__signal);
|
||||
|
||||
perf_error__register(&perf_tui_eops);
|
||||
|
||||
hist_browser__init_hpp();
|
||||
out:
|
||||
return err;
|
||||
}
|
||||
|
Посилання в новій задачі
Заблокувати користувача