diff options
author | Namhyung Kim <namhyung@kernel.org> | 2016-02-25 00:13:43 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-02-24 20:21:12 -0300 |
commit | f5b763feebe9770c3e6b01f1e19860e95f24b623 (patch) | |
tree | 708542bd889cb2322cfb89301994bb9e3301a663 /tools/perf/builtin-timechart.c | |
parent | 8e2fc44f46ba4d3d1ee8b6ba0839a282a9f3fdd7 (diff) | |
download | talos-op-linux-f5b763feebe9770c3e6b01f1e19860e95f24b623.tar.gz talos-op-linux-f5b763feebe9770c3e6b01f1e19860e95f24b623.zip |
perf hists browser: Count number of hierarchy entries
Add nr_hierarchy_entries field to keep current number of (unfolded) hist
entries. And the hist_entry->nr_rows carries number of direct children.
But in the hierarchy mode, entry can have grand children and callchains.
So update the number properly using hierarchy_count_rows() when toggling
the folded state (by pressing ENTER key).
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Pekka Enberg <penberg@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-12-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-timechart.c')
0 files changed, 0 insertions, 0 deletions