diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2019-07-10 04:58:04 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-07-10 11:31:01 -0400 |
commit | 266887291cac7f4020b5c83d2af9a13aece44a74 (patch) | |
tree | 972830a0061684d63ad3e1c8dfda0332ba1415b6 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | d9efc1d25214da500d6592095b542b32c15459df (diff) |
perf scripts python: exported-sql-viewer.py: Remove redundant semi-colons
Remove redundant semi-colons added inadvertently.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20190710085810.1650-16-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')
-rwxr-xr-x | tools/perf/scripts/python/exported-sql-viewer.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tools/perf/scripts/python/exported-sql-viewer.py b/tools/perf/scripts/python/exported-sql-viewer.py index 6e7934f2ac9a..dbbd7a5d9b60 100755 --- a/tools/perf/scripts/python/exported-sql-viewer.py +++ b/tools/perf/scripts/python/exported-sql-viewer.py | |||
@@ -392,7 +392,7 @@ class FindBar(): | |||
392 | self.hbox.addWidget(self.close_button) | 392 | self.hbox.addWidget(self.close_button) |
393 | 393 | ||
394 | self.bar = QWidget() | 394 | self.bar = QWidget() |
395 | self.bar.setLayout(self.hbox); | 395 | self.bar.setLayout(self.hbox) |
396 | self.bar.hide() | 396 | self.bar.hide() |
397 | 397 | ||
398 | def Widget(self): | 398 | def Widget(self): |
@@ -470,7 +470,7 @@ class CallGraphLevelItemBase(object): | |||
470 | self.params = params | 470 | self.params = params |
471 | self.row = row | 471 | self.row = row |
472 | self.parent_item = parent_item | 472 | self.parent_item = parent_item |
473 | self.query_done = False; | 473 | self.query_done = False |
474 | self.child_count = 0 | 474 | self.child_count = 0 |
475 | self.child_items = [] | 475 | self.child_items = [] |
476 | if parent_item: | 476 | if parent_item: |
@@ -517,7 +517,7 @@ class CallGraphLevelTwoPlusItemBase(CallGraphLevelItemBase): | |||
517 | self.time = time | 517 | self.time = time |
518 | 518 | ||
519 | def Select(self): | 519 | def Select(self): |
520 | self.query_done = True; | 520 | self.query_done = True |
521 | query = QSqlQuery(self.glb.db) | 521 | query = QSqlQuery(self.glb.db) |
522 | if self.params.have_ipc: | 522 | if self.params.have_ipc: |
523 | ipc_str = ", SUM(insn_count), SUM(cyc_count)" | 523 | ipc_str = ", SUM(insn_count), SUM(cyc_count)" |
@@ -604,7 +604,7 @@ class CallGraphLevelOneItem(CallGraphLevelItemBase): | |||
604 | self.dbid = comm_id | 604 | self.dbid = comm_id |
605 | 605 | ||
606 | def Select(self): | 606 | def Select(self): |
607 | self.query_done = True; | 607 | self.query_done = True |
608 | query = QSqlQuery(self.glb.db) | 608 | query = QSqlQuery(self.glb.db) |
609 | QueryExec(query, "SELECT thread_id, pid, tid" | 609 | QueryExec(query, "SELECT thread_id, pid, tid" |
610 | " FROM comm_threads" | 610 | " FROM comm_threads" |
@@ -622,7 +622,7 @@ class CallGraphRootItem(CallGraphLevelItemBase): | |||
622 | def __init__(self, glb, params): | 622 | def __init__(self, glb, params): |
623 | super(CallGraphRootItem, self).__init__(glb, params, 0, None) | 623 | super(CallGraphRootItem, self).__init__(glb, params, 0, None) |
624 | self.dbid = 0 | 624 | self.dbid = 0 |
625 | self.query_done = True; | 625 | self.query_done = True |
626 | query = QSqlQuery(glb.db) | 626 | query = QSqlQuery(glb.db) |
627 | QueryExec(query, "SELECT id, comm FROM comms") | 627 | QueryExec(query, "SELECT id, comm FROM comms") |
628 | while query.next(): | 628 | while query.next(): |
@@ -793,7 +793,7 @@ class CallTreeLevelTwoPlusItemBase(CallGraphLevelItemBase): | |||
793 | self.time = time | 793 | self.time = time |
794 | 794 | ||
795 | def Select(self): | 795 | def Select(self): |
796 | self.query_done = True; | 796 | self.query_done = True |
797 | if self.calls_id == 0: | 797 | if self.calls_id == 0: |
798 | comm_thread = " AND comm_id = " + str(self.comm_id) + " AND thread_id = " + str(self.thread_id) | 798 | comm_thread = " AND comm_id = " + str(self.comm_id) + " AND thread_id = " + str(self.thread_id) |
799 | else: | 799 | else: |
@@ -881,7 +881,7 @@ class CallTreeLevelOneItem(CallGraphLevelItemBase): | |||
881 | self.dbid = comm_id | 881 | self.dbid = comm_id |
882 | 882 | ||
883 | def Select(self): | 883 | def Select(self): |
884 | self.query_done = True; | 884 | self.query_done = True |
885 | query = QSqlQuery(self.glb.db) | 885 | query = QSqlQuery(self.glb.db) |
886 | QueryExec(query, "SELECT thread_id, pid, tid" | 886 | QueryExec(query, "SELECT thread_id, pid, tid" |
887 | " FROM comm_threads" | 887 | " FROM comm_threads" |
@@ -899,7 +899,7 @@ class CallTreeRootItem(CallGraphLevelItemBase): | |||
899 | def __init__(self, glb, params): | 899 | def __init__(self, glb, params): |
900 | super(CallTreeRootItem, self).__init__(glb, params, 0, None) | 900 | super(CallTreeRootItem, self).__init__(glb, params, 0, None) |
901 | self.dbid = 0 | 901 | self.dbid = 0 |
902 | self.query_done = True; | 902 | self.query_done = True |
903 | query = QSqlQuery(glb.db) | 903 | query = QSqlQuery(glb.db) |
904 | QueryExec(query, "SELECT id, comm FROM comms") | 904 | QueryExec(query, "SELECT id, comm FROM comms") |
905 | while query.next(): | 905 | while query.next(): |
@@ -971,7 +971,7 @@ class VBox(): | |||
971 | 971 | ||
972 | def __init__(self, w1, w2, w3=None): | 972 | def __init__(self, w1, w2, w3=None): |
973 | self.vbox = QWidget() | 973 | self.vbox = QWidget() |
974 | self.vbox.setLayout(QVBoxLayout()); | 974 | self.vbox.setLayout(QVBoxLayout()) |
975 | 975 | ||
976 | self.vbox.layout().setContentsMargins(0, 0, 0, 0) | 976 | self.vbox.layout().setContentsMargins(0, 0, 0, 0) |
977 | 977 | ||
@@ -1391,7 +1391,7 @@ class FetchMoreRecordsBar(): | |||
1391 | self.hbox.addWidget(self.close_button) | 1391 | self.hbox.addWidget(self.close_button) |
1392 | 1392 | ||
1393 | self.bar = QWidget() | 1393 | self.bar = QWidget() |
1394 | self.bar.setLayout(self.hbox); | 1394 | self.bar.setLayout(self.hbox) |
1395 | self.bar.show() | 1395 | self.bar.show() |
1396 | 1396 | ||
1397 | self.in_progress = False | 1397 | self.in_progress = False |
@@ -2206,7 +2206,7 @@ class ReportDialogBase(QDialog): | |||
2206 | self.vbox.addLayout(self.grid) | 2206 | self.vbox.addLayout(self.grid) |
2207 | self.vbox.addLayout(self.hbox) | 2207 | self.vbox.addLayout(self.hbox) |
2208 | 2208 | ||
2209 | self.setLayout(self.vbox); | 2209 | self.setLayout(self.vbox) |
2210 | 2210 | ||
2211 | def Ok(self): | 2211 | def Ok(self): |
2212 | vars = self.report_vars | 2212 | vars = self.report_vars |
@@ -3139,7 +3139,7 @@ class AboutDialog(QDialog): | |||
3139 | self.vbox = QVBoxLayout() | 3139 | self.vbox = QVBoxLayout() |
3140 | self.vbox.addWidget(self.text) | 3140 | self.vbox.addWidget(self.text) |
3141 | 3141 | ||
3142 | self.setLayout(self.vbox); | 3142 | self.setLayout(self.vbox) |
3143 | 3143 | ||
3144 | # Font resize | 3144 | # Font resize |
3145 | 3145 | ||