perf scripts python: exported-sql-viewer.py: Improve TreeModel abstraction
authorAdrian Hunter <adrian.hunter@intel.com>
Thu, 28 Feb 2019 13:00:29 +0000 (15:00 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 1 Mar 2019 17:55:32 +0000 (14:55 -0300)
commita448ba232a5f0176c226df1bab8877ec06a7c771
treeb8fa95201a53e134cc47d8cbb04586224995506c
parenta731cc4c990a90d9d42a2081ca93fb4310680ae2
perf scripts python: exported-sql-viewer.py: Improve TreeModel abstraction

Instead of passing the tree root, get it from a method that can be
implemented in any derived class.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: https://lkml.kernel.org/n/tip-ovcv28bg4mt9swk36ypdyz14@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/scripts/python/exported-sql-viewer.py