Lines Matching refs:glb

203 	def __init__(self, glb, params, parent=None):  argument
205 self.glb = glb
468 def __init__(self, glb, params, row, parent_item): argument
469 self.glb = glb
509 …def __init__(self, glb, params, row, comm_id, thread_id, call_path_id, time, insn_cnt, cyc_cnt, br… argument
510 super(CallGraphLevelTwoPlusItemBase, self).__init__(glb, params, row, parent_item)
521 query = QSqlQuery(self.glb.db)
545 …child_item = CallGraphLevelThreeItem(self.glb, self.params, self.child_count, self.comm_id, self.t…
553 …def __init__(self, glb, params, row, comm_id, thread_id, call_path_id, name, dso, count, time, ins… argument
554 …super(CallGraphLevelThreeItem, self).__init__(glb, params, row, comm_id, thread_id, call_path_id, …
570 def __init__(self, glb, params, row, comm_id, thread_id, pid, tid, parent_item): argument
571 …super(CallGraphLevelTwoItem, self).__init__(glb, params, row, comm_id, thread_id, 1, 0, 0, 0, 0, p…
598 def __init__(self, glb, params, row, comm_id, comm, parent_item): argument
599 super(CallGraphLevelOneItem, self).__init__(glb, params, row, parent_item)
608 query = QSqlQuery(self.glb.db)
614 …child_item = CallGraphLevelTwoItem(self.glb, self.params, self.child_count, self.dbid, query.value…
622 def __init__(self, glb, params): argument
623 super(CallGraphRootItem, self).__init__(glb, params, 0, None)
627 if IsSelectable(glb.db, "comms", columns = "has_calls"):
629 query = QSqlQuery(glb.db)
634 …child_item = CallGraphLevelOneItem(glb, params, self.child_count, query.value(0), query.value(1), …
642 def __init__(self, glb, parent=None): argument
643 self.have_ipc = IsSelectable(glb.db, "calls", columns = "insn_count, cyc_count")
649 def __init__(self, glb, parent=None): argument
650 super(CallGraphModelBase, self).__init__(glb, CallGraphModelParams(glb), parent)
659 if not self.glb.dbref.is_sqlite3:
715 context.append(Context(value, direction, pattern, QSqlQuery(self.glb.db), None, None))
728 def __init__(self, glb, parent=None): argument
729 super(CallGraphModel, self).__init__(glb, parent)
732 return CallGraphRootItem(self.glb, self.params)
770 q2 = QSqlQuery(self.glb.db)
788 …def __init__(self, glb, params, row, comm_id, thread_id, calls_id, time, insn_cnt, cyc_cnt, branch… argument
789 super(CallTreeLevelTwoPlusItemBase, self).__init__(glb, params, row, parent_item)
808 query = QSqlQuery(self.glb.db)
825 …child_item = CallTreeLevelThreeItem(self.glb, self.params, self.child_count, self.comm_id, self.th…
833 …def __init__(self, glb, params, row, comm_id, thread_id, calls_id, name, dso, count, time, insn_cn… argument
834 …super(CallTreeLevelThreeItem, self).__init__(glb, params, row, comm_id, thread_id, calls_id, time,…
850 def __init__(self, glb, params, row, comm_id, thread_id, pid, tid, parent_item): argument
851 …super(CallTreeLevelTwoItem, self).__init__(glb, params, row, comm_id, thread_id, 0, 0, 0, 0, 0, pa…
878 def __init__(self, glb, params, row, comm_id, comm, parent_item): argument
879 super(CallTreeLevelOneItem, self).__init__(glb, params, row, parent_item)
888 query = QSqlQuery(self.glb.db)
894 …child_item = CallTreeLevelTwoItem(self.glb, self.params, self.child_count, self.dbid, query.value(…
902 def __init__(self, glb, params): argument
903 super(CallTreeRootItem, self).__init__(glb, params, 0, None)
907 if IsSelectable(glb.db, "comms", columns = "has_calls"):
909 query = QSqlQuery(glb.db)
914 …child_item = CallTreeLevelOneItem(glb, params, self.child_count, query.value(0), query.value(1), s…
922 def __init__(self, glb, parent=None): argument
923 super(CallTreeModel, self).__init__(glb, parent)
926 return CallTreeRootItem(self.glb, self.params)
963 q2 = QSqlQuery(self.glb.db)
1044 def __init__(self, glb, parent=None): argument
1047 self.model = LookupCreateModel("Context-Sensitive Call Graph", lambda x=glb: CallGraphModel(x))
1060 AddSubWindow(glb.mainwindow.mdi_area, self, "Context-Sensitive Call Graph")
1066 def __init__(self, glb, parent=None): argument
1069 self.model = LookupCreateModel("Call Tree", lambda x=glb: CallTreeModel(x))
1082 AddSubWindow(glb.mainwindow.mdi_area, self, "Call Tree")
1271 def __init__(self, glb, sql, prep, process_data, parent=None): argument
1289 glb.AddInstanceToShutdownOnExit(self)
1290 …self.process = Process(target=SQLFetcherFn, args=(glb.dbref, sql, self.buffer, self.head, self.tai…
1500 def __init__(self, glb, row, data, parent_item): argument
1501 self.glb = glb
1524 if not self.glb.have_disassembler:
1527 query = QSqlQuery(self.glb.db)
1568 inst = self.glb.disassembler.Instruction()
1569 f = self.glb.FileFromNamesAndBuildId(short_name, long_name, build_id)
1573 self.glb.disassembler.SetMode(inst, mode)
1582 cnt, text = self.glb.disassembler.DisassembleOne(inst, buf_ptr, buf_sz, ip)
1710 def __init__(self, glb, event_id, where_clause, parent=None): argument
1711 super(BranchModel, self).__init__(glb, None, parent)
1715 self.have_ipc = IsSelectable(glb.db, "samples", columns = "insn_count, cyc_count")
1745 self.fetcher = SQLFetcher(glb, sql, prep, self.AddSample)
1779 child = BranchLevelOneItem(self.glb, self.populated, data, self.root)
1824 def __init__(self, glb, event_id, report_vars, parent=None): argument
1829 …self.model = LookupCreateModel(model_name, lambda: BranchModel(glb, event_id, report_vars.where_cl…
1851 AddSubWindow(glb.mainwindow.mdi_area, self, report_vars.name + " Branch Events")
1900 def __init__(self, glb, label, placeholder_text, parent, id = "", default = ""): argument
1901 self.glb = glb
1974 def __init__(self, glb, label, placeholder_text, column_name, parent): argument
1975 super(NonNegativeIntegerRangesDataItem, self).__init__(glb, label, placeholder_text, parent)
2001 def __init__(self, glb, label, placeholder_text, parent, id = "", default = ""): argument
2002 super(PositiveIntegerDataItem, self).__init__(glb, label, placeholder_text, parent, id, default)
2016 …def __init__(self, glb, label, placeholder_text, table_name, match_column, column_name1, column_na… argument
2017 super(SQLTableDataItem, self).__init__(glb, label, placeholder_text, parent)
2026 query = QSqlQuery(self.glb.db)
2050 def __init__(self, glb, label, placeholder_text, column_name, parent): argument
2057 query = QSqlQuery(glb.db)
2068 super(SampleTimeRangesDataItem, self).__init__(glb, label, placeholder_text, parent)
2078 query = QSqlQuery(self.glb.db)
2174 def __init__(self, glb, title, items, partial, parent=None): argument
2177 self.glb = glb
2184 self.data_items = [x(glb, self) for x in items]
2252 def __init__(self, glb, parent=None): argument
2263 super(SelectedBranchDialog, self).__init__(glb, title, items, True, parent)
2302 def __init__(self, glb, sql, column_headers, parent=None): argument
2304 self.glb = glb
2308 …self.fetcher = SQLFetcher(glb, sql, lambda x, y=len(column_headers): self.SQLTableDataPrep(x, y), …
2362 def __init__(self, glb, table_name, parent=None): argument
2368 query = QSqlQuery(glb.db)
2369 if glb.dbref.is_sqlite3:
2391 super(SQLAutoTableModel, self).__init__(glb, sql, column_headers, parent)
2687 def __init__(self, glb, table_name, parent=None): argument
2690 …self.data_model = LookupCreateModel(table_name + " Table", lambda: SQLAutoTableModel(glb, table_na…
2718 AddSubWindow(glb.mainwindow.mdi_area, self, table_name + " Table")
2734 def GetTableList(glb): argument
2736 query = QSqlQuery(glb.db)
2737 if glb.dbref.is_sqlite3:
2743 if glb.dbref.is_sqlite3:
2755 def __init__(self, glb, report_vars, parent=None): argument
2757 if not glb.dbref.is_sqlite3:
2786 super(TopCallsModel, self).__init__(glb, sql, column_headers, parent)
2795 def __init__(self, glb, parent=None): argument
2805 super(TopCallsDialog, self).__init__(glb, title, items, False, parent)
2811 def __init__(self, glb, report_vars, parent=None): argument
2814 …= LookupCreateModel("Top Calls " + report_vars.UniqueId(), lambda: TopCallsModel(glb, report_vars))
2838 AddSubWindow(glb.mainwindow.mdi_area, self, report_vars.name)
3065 def __init__(self, glb, parent=None): argument
3075 AddSubWindow(glb.mainwindow.mdi_area, self, "Exported SQL Viewer Help")
3122 def __init__(self, glb, parent=None): argument
3134 if glb.dbref.is_sqlite3:
3135 text += "SQLite version: " + SQLiteVersion(glb.db) + "\n"
3137 text += "PostqreSQL version: " + PostqreSQLServerVersion(glb.db) + "\n"
3201 def __init__(self, glb, parent=None): argument
3204 self.glb = glb
3206 self.setWindowTitle("Exported SQL Viewer: " + glb.dbname)
3219 file_menu.addAction(CreateExitAction(glb.app, self))
3230 if IsSelectable(glb.db, "calls"):
3233 if IsSelectable(glb.db, "calls", "WHERE parent_id >= 0"):
3236 self.EventMenu(GetEventList(glb.db), reports_menu)
3238 if IsSelectable(glb.db, "calls"):
3241 self.TableMenu(GetTableList(glb), menu)
3307 CallGraphWindow(self.glb, self)
3310 CallTreeWindow(self.glb, self)
3313 dialog = TopCallsDialog(self.glb, self)
3316 TopCallsWindow(self.glb, dialog.report_vars, self)
3319 BranchWindow(self.glb, event_id, ReportVars(), self)
3322 dialog = SelectedBranchDialog(self.glb, self)
3325 BranchWindow(self.glb, event_id, dialog.report_vars, self)
3328 TableWindow(self.glb, table_name, self)
3331 HelpWindow(self.glb, self)
3334 dialog = AboutDialog(self.glb, self)
3576 glb = Glb(dbref, db, dbname)
3578 glb.app = app
3579 mainwindow = MainWindow(glb)
3580 glb.mainwindow = mainwindow
3583 glb.ShutdownInstances()