Re: [PATCH v6 16/25] perf ui/stdio: Implement hierarchy output mode

2016-02-21 Thread Namhyung Kim
On Sun, Feb 21, 2016 at 12:18:56AM +0100, Jiri Olsa wrote: > On Tue, Feb 16, 2016 at 11:08:34PM +0900, Namhyung Kim wrote: > > SNIP > > > +static int hist_entry__hierarchy_fprintf(struct hist_entry *he, > > +struct perf_hpp *hpp, > > +

Re: [PATCH v6 16/25] perf ui/stdio: Implement hierarchy output mode

2016-02-20 Thread Jiri Olsa
On Tue, Feb 16, 2016 at 11:08:34PM +0900, Namhyung Kim wrote: SNIP > +static int hist_entry__hierarchy_fprintf(struct hist_entry *he, > + struct perf_hpp *hpp, > + int nr_sort_key, struct hists *hists, > +

[PATCH v6 16/25] perf ui/stdio: Implement hierarchy output mode

2016-02-16 Thread Namhyung Kim
The hierarchy output mode is to group entries for each level so that user can see higher level picture more easily. It also helps to find out which component is most costly. The output will look like below: 15.11% swapper 14.97% [kernel.vmlinux] 0.09% [libahc