diff options
| author | Adrian Hunter <[email protected]> | 2019-05-03 12:08:25 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-05-15 19:36:47 +0000 |
| commit | 3ac641f4acd66c109b74f108f8a61f2905702b10 (patch) | |
| tree | 42676185b6308246f296554417e92a8a440a316d /tools/perf/scripts/python | |
| parent | perf scripts python: exported-sql-viewer.py: Fix error when shrinking / enlar... (diff) | |
| download | kernel-3ac641f4acd66c109b74f108f8a61f2905702b10.tar.gz kernel-3ac641f4acd66c109b74f108f8a61f2905702b10.zip | |
perf scripts python: exported-sql-viewer.py: Add tree level
As preparation for adding support for copying to clipboard, keep track of
what level each item is in tree items.
Signed-off-by: Adrian Hunter <[email protected]>
Cc: Jiri Olsa <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
| -rwxr-xr-x | tools/perf/scripts/python/exported-sql-viewer.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/scripts/python/exported-sql-viewer.py b/tools/perf/scripts/python/exported-sql-viewer.py index fd073e4af8da..48953257a1f0 100755 --- a/tools/perf/scripts/python/exported-sql-viewer.py +++ b/tools/perf/scripts/python/exported-sql-viewer.py @@ -456,6 +456,10 @@ class CallGraphLevelItemBase(object): self.query_done = False; self.child_count = 0 self.child_items = [] + if parent_item: + self.level = parent_item.level + 1 + else: + self.level = 0 def getChildItem(self, row): return self.child_items[row] |
