diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2018-10-01 02:28:37 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-10-23 13:19:30 -0400 |
commit | 3c4ef451506897a15aff76ff141c995c6cd32f4d (patch) | |
tree | 950d5b53bd0625591460b4490b93b7f4d4479184 /tools/perf/scripts/python | |
parent | 1d865c06f5715df94528f76d6bb7f6f98975e04e (diff) |
perf scripts python: call-graph-from-sql.py: Set a minimum window size
Prevent weirdly small window size.
Committer testing:
Seems to work, but even before this patch, on my system, it always
started with:
xwininfo: Window id: 0x1e00002 "Call Graph: pt_example"
<SNIP>
Width: 800
Height: 600
<SNIP>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20181001062853.28285-4-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
-rw-r--r-- | tools/perf/scripts/python/call-graph-from-sql.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/scripts/python/call-graph-from-sql.py b/tools/perf/scripts/python/call-graph-from-sql.py index e1014f2628a7..68153fa1b4d1 100644 --- a/tools/perf/scripts/python/call-graph-from-sql.py +++ b/tools/perf/scripts/python/call-graph-from-sql.py | |||
@@ -274,6 +274,7 @@ class MainWindow(QMainWindow): | |||
274 | style = self.style() | 274 | style = self.style() |
275 | icon = style.standardIcon(QStyle.SP_MessageBoxInformation) | 275 | icon = style.standardIcon(QStyle.SP_MessageBoxInformation) |
276 | self.setWindowIcon(icon); | 276 | self.setWindowIcon(icon); |
277 | self.setMinimumSize(200, 100) | ||
277 | 278 | ||
278 | self.model = TreeModel(db) | 279 | self.model = TreeModel(db) |
279 | 280 | ||