|
@@ -2056,10 +2056,12 @@ int symbol__annotate_printf(struct symbol *sym, struct map *map,
|
|
evsel_name = buf;
|
|
evsel_name = buf;
|
|
}
|
|
}
|
|
|
|
|
|
- graph_dotted_len = printf(" %-*.*s| Source code & Disassembly of %s for %s (%" PRIu64 " samples)\n",
|
|
|
|
|
|
+ graph_dotted_len = printf(" %-*.*s| Source code & Disassembly of %s for %s (%" PRIu64 " samples, "
|
|
|
|
+ "percent: %s)\n",
|
|
width, width, symbol_conf.show_total_period ? "Period" :
|
|
width, width, symbol_conf.show_total_period ? "Period" :
|
|
symbol_conf.show_nr_samples ? "Samples" : "Percent",
|
|
symbol_conf.show_nr_samples ? "Samples" : "Percent",
|
|
- d_filename, evsel_name, h->nr_samples);
|
|
|
|
|
|
+ d_filename, evsel_name, h->nr_samples,
|
|
|
|
+ percent_type_str(opts->percent_type));
|
|
|
|
|
|
printf("%-*.*s----\n",
|
|
printf("%-*.*s----\n",
|
|
graph_dotted_len, graph_dotted_len, graph_dotted_line);
|
|
graph_dotted_len, graph_dotted_len, graph_dotted_line);
|
|
@@ -2434,7 +2436,8 @@ int symbol__tty_annotate2(struct symbol *sym, struct map *map,
|
|
}
|
|
}
|
|
|
|
|
|
hists__scnprintf_title(hists, buf, sizeof(buf));
|
|
hists__scnprintf_title(hists, buf, sizeof(buf));
|
|
- fprintf(stdout, "%s\n%s() %s\n", buf, sym->name, dso->long_name);
|
|
|
|
|
|
+ fprintf(stdout, "%s, [percent: %s]\n%s() %s\n",
|
|
|
|
+ buf, percent_type_str(opts->percent_type), sym->name, dso->long_name);
|
|
symbol__annotate_fprintf2(sym, stdout, opts);
|
|
symbol__annotate_fprintf2(sym, stdout, opts);
|
|
|
|
|
|
annotated_source__purge(symbol__annotation(sym)->src);
|
|
annotated_source__purge(symbol__annotation(sym)->src);
|