|
@@ -1267,6 +1267,8 @@ static int hists__browser_title(struct hists *hists,
|
|
|
const char *ev_name = perf_evsel__name(evsel);
|
|
|
char buf[512];
|
|
|
size_t buflen = sizeof(buf);
|
|
|
+ char ref[30] = " show reference callgraph, ";
|
|
|
+ bool enable_ref = false;
|
|
|
|
|
|
if (symbol_conf.filter_relative) {
|
|
|
nr_samples = hists->stats.nr_non_filtered_samples;
|
|
@@ -1292,10 +1294,13 @@ static int hists__browser_title(struct hists *hists,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (symbol_conf.show_ref_callgraph &&
|
|
|
+ strstr(ev_name, "call-graph=no"))
|
|
|
+ enable_ref = true;
|
|
|
nr_samples = convert_unit(nr_samples, &unit);
|
|
|
printed = scnprintf(bf, size,
|
|
|
- "Samples: %lu%c of event '%s', Event count (approx.): %" PRIu64,
|
|
|
- nr_samples, unit, ev_name, nr_events);
|
|
|
+ "Samples: %lu%c of event '%s',%sEvent count (approx.): %" PRIu64,
|
|
|
+ nr_samples, unit, ev_name, enable_ref ? ref : " ", nr_events);
|
|
|
|
|
|
|
|
|
if (hists->uid_filter_str)
|