summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorAdrian Hunter2018-10-01 08:28:45 +0200
committerArnaldo Carvalho de Melo2018-10-23 19:26:06 +0200
commit341e73cbd3019d350d1271803b45d84af88f2408 (patch)
treee15524ae20116722e22858e2f4c97703ec503707 /tools/perf/scripts/python/exported-sql-viewer.py
parentperf scripts python: call-graph-from-sql.py: Add data helper functions (diff)
downloadkernel-qcow2-linux-341e73cbd3019d350d1271803b45d84af88f2408.tar.gz
kernel-qcow2-linux-341e73cbd3019d350d1271803b45d84af88f2408.tar.xz
kernel-qcow2-linux-341e73cbd3019d350d1271803b45d84af88f2408.zip
perf scripts python: call-graph-from-sql.py: Refactor TreeItem class
class TreeItem represents items at all levels of the call-graph tree. However, not all the levels represent the same data i.e. the top-level is comms, the next level is threads, and subsequent levels are functions. Consequently it is simpler to have separate classes for different levels with commonality in a base class. Refactor TreeItem class accordingly. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: http://lkml.kernel.org/r/20181001062853.28285-12-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions