3 #include "../util/cache.h"
4 #include "../util/debug.h"
5 #include "../util/hist.h"
7 pthread_mutex_t ui__lock = PTHREAD_MUTEX_INITIALIZER;
9 void setup_browser(bool fallback_to_pager)
11 if (use_browser < 2 && (!isatty(1) || dump_trace))
18 switch (use_browser) {
20 if (perf_gtk__init() == 0)
30 if (fallback_to_pager)
38 void exit_browser(bool wait_for_ok)
40 switch (use_browser) {
42 perf_gtk__exit(wait_for_ok);
46 ui__exit(wait_for_ok);