mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
perf tools: Add TUI hints for --hybrid-merge
Add dynamic TUI hints prompting users to restart with --hybrid-merge when heterogeneous core PMU events are populated in the sample view. Signed-off-by: Ian Rogers <irogers@google.com> Assisted-by: Antigravity:gemini-3.1-pro Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
a25262fb16
commit
59eca52494
|
|
@ -67,3 +67,4 @@ For parallelism histogram, try: perf report --hierarchy --sort latency,paralleli
|
|||
To analyze particular parallelism levels, try: perf report --latency --parallelism=32-64
|
||||
To see how parallelism changes over time, try: perf report -F time,latency,parallelism --time-quantum=1s
|
||||
When merging events like cycles, different core frequencies and instructions per cycle mean the counts may not fairly reflect time spent in a function.
|
||||
Use --hybrid-merge to merge matching events from hybrid cores into one view
|
||||
|
|
|
|||
|
|
@ -3580,9 +3580,12 @@ static int perf_evsel_menu__run(struct evsel_menu *menu,
|
|||
const char *title = "Available samples";
|
||||
int delay_secs = hbt ? hbt->refresh : 0;
|
||||
int key;
|
||||
const char *help_text = "ESC: exit, ENTER|->: Browse histograms";
|
||||
|
||||
if (ui_browser__show(&menu->b, title,
|
||||
"ESC: exit, ENTER|->: Browse histograms") < 0)
|
||||
if (!symbol_conf.hybrid_merge && evlist__can_merge_hybrid(evlist, menu->env))
|
||||
help_text = "ESC: exit, ENTER|->: Browse. Try --hybrid-merge to combine events.";
|
||||
|
||||
if (ui_browser__show(&menu->b, title, help_text) < 0)
|
||||
return -1;
|
||||
|
||||
while (1) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user