mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-09 16:12:21 +00:00
perf annotate: Display total number of samples with --show-total-period
To compare two records on an instruction base, with --show-total-period option provided, display total number of samples that belong to a line in assembly language. New hot key 't' is introduced for 'perf annotate' TUI. Signed-off-by: Martin Liska <mliska@suse.cz> Cc: Andi Kleen <andi@firstfloor.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/5583E26D.1040407@suse.cz Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
a5499b3719
commit
0c4a5bcea4
4 changed files with 70 additions and 23 deletions
|
@ -72,7 +72,7 @@ struct disasm_line *disasm__get_next_ip_line(struct list_head *head, struct disa
|
|||
int disasm_line__scnprintf(struct disasm_line *dl, char *bf, size_t size, bool raw);
|
||||
size_t disasm__fprintf(struct list_head *head, FILE *fp);
|
||||
double disasm__calc_percent(struct annotation *notes, int evidx, s64 offset,
|
||||
s64 end, const char **path);
|
||||
s64 end, const char **path, u64 *nr_samples);
|
||||
|
||||
struct sym_hist {
|
||||
u64 sum;
|
||||
|
@ -82,6 +82,7 @@ struct sym_hist {
|
|||
struct source_line_percent {
|
||||
double percent;
|
||||
double percent_sum;
|
||||
double samples;
|
||||
};
|
||||
|
||||
struct source_line {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue