struct c2c_cacheline_browser *cl_browser;
struct hist_browser *browser;
int key = -1;
+ const char help[] =
+ " ENTER Togle callchains (if present) \n"
+ " n Togle Node details info \n"
+ " s Togle full lenght of symbol and source line columns \n"
+ " q Return back to cacheline list \n";
/* Display compact version first. */
c2c.symbol_full = false;
c2c_browser__update_nr_entries(browser);
while (1) {
- key = hist_browser__run(browser, "help");
+ key = hist_browser__run(browser, "? - help");
switch (key) {
case 's':
break;
case 'q':
goto out;
+ case '?':
+ ui_browser__help_window(&browser->b, help);
+ break;
default:
break;
}
{
struct hist_browser *browser;
int key = -1;
+ const char help[] =
+ " d Display cacheline details \n"
+ " ENTER Togle callchains (if present) \n"
+ " q Quit \n";
browser = perf_c2c_browser__new(hists);
if (browser == NULL)
c2c_browser__update_nr_entries(browser);
while (1) {
- key = hist_browser__run(browser, "help");
+ key = hist_browser__run(browser, "? - help");
switch (key) {
case 'q':
case 'd':
perf_c2c__browse_cacheline(browser->he_selection);
break;
+ case '?':
+ ui_browser__help_window(&browser->b, help);
+ break;
default:
break;
}