diff options
Diffstat (limited to 'tools/perf/ui/browsers/hists.c')
-rw-r--r-- | tools/perf/ui/browsers/hists.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c index b8094692c153..81bd8c2af730 100644 --- a/tools/perf/ui/browsers/hists.c +++ b/tools/perf/ui/browsers/hists.c | |||
@@ -586,7 +586,7 @@ static int hist_browser__show_entry(struct hist_browser *browser, | |||
586 | } | 586 | } |
587 | 587 | ||
588 | if (row_offset == 0) { | 588 | if (row_offset == 0) { |
589 | hist_entry__snprintf(entry, s, sizeof(s), browser->hists); | 589 | hist_entry__sort_snprintf(entry, s, sizeof(s), browser->hists); |
590 | percent = (entry->period * 100.0) / browser->hists->stats.total_period; | 590 | percent = (entry->period * 100.0) / browser->hists->stats.total_period; |
591 | 591 | ||
592 | ui_browser__set_percent_color(&browser->b, percent, current_entry); | 592 | ui_browser__set_percent_color(&browser->b, percent, current_entry); |
@@ -931,7 +931,7 @@ static int hist_browser__fprintf_entry(struct hist_browser *browser, | |||
931 | if (symbol_conf.use_callchain) | 931 | if (symbol_conf.use_callchain) |
932 | folded_sign = hist_entry__folded(he); | 932 | folded_sign = hist_entry__folded(he); |
933 | 933 | ||
934 | hist_entry__snprintf(he, s, sizeof(s), browser->hists); | 934 | hist_entry__sort_snprintf(he, s, sizeof(s), browser->hists); |
935 | percent = (he->period * 100.0) / browser->hists->stats.total_period; | 935 | percent = (he->period * 100.0) / browser->hists->stats.total_period; |
936 | 936 | ||
937 | if (symbol_conf.use_callchain) | 937 | if (symbol_conf.use_callchain) |