perf hists: Add support for showing relative percentage
authorNamhyung Kim <namhyung@kernel.org>
Thu, 26 Dec 2013 06:11:52 +0000 (15:11 +0900)
committerJiri Olsa <jolsa@redhat.com>
Wed, 16 Apr 2014 15:16:03 +0000 (17:16 +0200)
commit1ab1fa5dfb429c533fbc791e524788cf0cc43775
tree498386cc0e6342a7228e86f3a59da86179e62e5a
parentfbdd17ec5ce2e5e4027356fcfde769b88d15702f
perf hists: Add support for showing relative percentage

When filtering by thread, dso or symbol on TUI it also update total
period so that the output shows different result than no filter - the
percentage changed to relative to filtered entries only.  Sometimes
this is not desired since users might expect same results with filter.

So new filtered_* fields to hists->stats to count them separately.
They'll be controlled/used by user later.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1397145720-8063-2-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
tools/perf/builtin-report.c
tools/perf/builtin-top.c
tools/perf/util/hist.c
tools/perf/util/hist.h