Skip to content

Commit 2ddda79

Browse files
namhyungacmel
authored andcommitted
perf report: Show message for percent limit on gtk
Like the stdio, it should show messages about omitted hierarchy entries. Please refer the previous commit for more details. Signed-off-by: Namhyung Kim <[email protected]> Cc: Andi Kleen <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 79dded8 commit 2ddda79

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tools/perf/ui/gtk/hists.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,17 @@ static void perf_gtk__add_hierarchy_entries(struct hists *hists,
449449
perf_gtk__add_hierarchy_entries(hists, &he->hroot_out,
450450
store, &iter, hpp,
451451
min_pcnt);
452+
453+
if (!hist_entry__has_hierarchy_children(he, min_pcnt)) {
454+
char buf[32];
455+
GtkTreeIter child;
456+
457+
snprintf(buf, sizeof(buf), "no entry >= %.2f%%",
458+
min_pcnt);
459+
460+
gtk_tree_store_append(store, &child, &iter);
461+
gtk_tree_store_set(store, &child, col_idx, buf, -1);
462+
}
452463
}
453464

454465
if (symbol_conf.use_callchain && he->leaf) {

0 commit comments

Comments
 (0)