diff options
author | Namhyung Kim <namhyung@kernel.org> | 2016-02-25 00:13:39 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-02-24 20:21:11 -0300 |
commit | 70642850fa581df219d7bc03cd7aca6e1956968c (patch) | |
tree | ed63b37b814c08c99d90c8e37efc905cbe764f93 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 155e9afff77916931f615a394cef187b342530dc (diff) | |
download | linux-stable-70642850fa581df219d7bc03cd7aca6e1956968c.tar.gz linux-stable-70642850fa581df219d7bc03cd7aca6e1956968c.tar.bz2 linux-stable-70642850fa581df219d7bc03cd7aca6e1956968c.zip |
perf hists: Resort after filtering hierarchy
In hierarchy mode, a filter can affect periods of entries in upper
hierarchy. So it needs to resort the hists after filter.
For example, let's look at following example:
Overhead Command / Shared Object / Symbol
------------ --------------------------------
30.00% perf
20.00% perf
10.00% main
5.00% pr_debug
5.00% memcpy
10.00% [kernel.vmlinux]
8.00% memset
2.00% cpu_idle
If we apply simbol filter for 'mem' it should look like this
13.00% perf
8.00% [kernel.vmlinux]
8.00% memset
5.00% perf
5.00% memcpy
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/r/1456326830-30456-8-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions