Lines Matching refs:glb

213 	def __init__(self, glb, params, parent=None):  argument
215 self.glb = glb
487 def __init__(self, glb, params, row, parent_item): argument
488 self.glb = glb
528 …def __init__(self, glb, params, row, comm_id, thread_id, call_path_id, time, insn_cnt, cyc_cnt, br… argument
529 super(CallGraphLevelTwoPlusItemBase, self).__init__(glb, params, row, parent_item)
540 query = QSqlQuery(self.glb.db)
564 …child_item = CallGraphLevelThreeItem(self.glb, self.params, self.child_count, self.comm_id, self.t…
572 …def __init__(self, glb, params, row, comm_id, thread_id, call_path_id, name, dso, count, time, ins… argument
573 …super(CallGraphLevelThreeItem, self).__init__(glb, params, row, comm_id, thread_id, call_path_id, …
589 def __init__(self, glb, params, row, comm_id, thread_id, pid, tid, parent_item): argument
590 …super(CallGraphLevelTwoItem, self).__init__(glb, params, row, comm_id, thread_id, 1, 0, 0, 0, 0, p…
617 def __init__(self, glb, params, row, comm_id, comm, parent_item): argument
618 super(CallGraphLevelOneItem, self).__init__(glb, params, row, parent_item)
627 query = QSqlQuery(self.glb.db)
633 …child_item = CallGraphLevelTwoItem(self.glb, self.params, self.child_count, self.dbid, query.value…
641 def __init__(self, glb, params): argument
642 super(CallGraphRootItem, self).__init__(glb, params, 0, None)
646 if IsSelectable(glb.db, "comms", columns = "has_calls"):
647 if_has_calls = " WHERE has_calls = " + glb.dbref.TRUE
648 query = QSqlQuery(glb.db)
653 …child_item = CallGraphLevelOneItem(glb, params, self.child_count, query.value(0), query.value(1), …
661 def __init__(self, glb, parent=None): argument
662 self.have_ipc = IsSelectable(glb.db, "calls", columns = "insn_count, cyc_count")
668 def __init__(self, glb, parent=None): argument
669 super(CallGraphModelBase, self).__init__(glb, CallGraphModelParams(glb), parent)
678 if not self.glb.dbref.is_sqlite3:
734 context.append(Context(value, direction, pattern, QSqlQuery(self.glb.db), None, None))
747 def __init__(self, glb, parent=None): argument
748 super(CallGraphModel, self).__init__(glb, parent)
751 return CallGraphRootItem(self.glb, self.params)
790 q2 = QSqlQuery(self.glb.db)
808 …def __init__(self, glb, params, row, comm_id, thread_id, calls_id, call_time, time, insn_cnt, cyc_… argument
809 super(CallTreeLevelTwoPlusItemBase, self).__init__(glb, params, row, parent_item)
829 query = QSqlQuery(self.glb.db)
846 …child_item = CallTreeLevelThreeItem(self.glb, self.params, self.child_count, self.comm_id, self.th…
854 …def __init__(self, glb, params, row, comm_id, thread_id, calls_id, name, dso, call_time, time, ins… argument
855 …super(CallTreeLevelThreeItem, self).__init__(glb, params, row, comm_id, thread_id, calls_id, call_…
871 def __init__(self, glb, params, row, comm_id, thread_id, pid, tid, parent_item): argument
872 …super(CallTreeLevelTwoItem, self).__init__(glb, params, row, comm_id, thread_id, 0, 0, 0, 0, 0, 0,…
899 def __init__(self, glb, params, row, comm_id, comm, parent_item): argument
900 super(CallTreeLevelOneItem, self).__init__(glb, params, row, parent_item)
909 query = QSqlQuery(self.glb.db)
915 …child_item = CallTreeLevelTwoItem(self.glb, self.params, self.child_count, self.dbid, query.value(…
923 def __init__(self, glb, params): argument
924 super(CallTreeRootItem, self).__init__(glb, params, 0, None)
928 if IsSelectable(glb.db, "comms", columns = "has_calls"):
929 if_has_calls = " WHERE has_calls = " + glb.dbref.TRUE
930 query = QSqlQuery(glb.db)
935 …child_item = CallTreeLevelOneItem(glb, params, self.child_count, query.value(0), query.value(1), s…
943 def __init__(self, glb, parent=None): argument
944 super(CallTreeModel, self).__init__(glb, parent)
947 return CallTreeRootItem(self.glb, self.params)
985 q2 = QSqlQuery(self.glb.db)
1088 def __init__(self, glb, parent=None): argument
1091 self.model = LookupCreateModel("Context-Sensitive Call Graph", lambda x=glb: CallGraphModel(x))
1104 AddSubWindow(glb.mainwindow.mdi_area, self, "Context-Sensitive Call Graph")
1110 def __init__(self, glb, parent=None, thread_at_time=None): argument
1113 self.model = LookupCreateModel("Call Tree", lambda x=glb: CallTreeModel(x))
1126 AddSubWindow(glb.mainwindow.mdi_area, self, "Call Tree")
1307 " AND exec_flag = " + self.collection.glb.dbref.TRUE +
1338 start_time = self.collection.glb.StartTime(self.collection.machine_id)
1380 def __init__(self, glb): argument
1381 self.glb = glb
1405 def __init__(self, glb, db, machine_id): argument
1406 super(SwitchGraphDataCollection, self).__init__(glb)
1411 self.xrangelo = glb.StartTime(machine_id)
1412 self.xrangehi = glb.FinishTime(machine_id)
2190 def __init__(self, glb, collection, parent=None): argument
2193 self.glb = glb
2200 self.start_time = self.glb.StartTime(collection.machine_id)
2282 rel_time_from = time_from - self.glb.StartTime(self.collection.machine_id)
2288 if not IsSelectable(self.glb.db, "calls", "WHERE parent_id >= 0"):
2298 CallTreeWindow(self.glb, self.glb.mainwindow, thread_at_time=args)
2402 def __init__(self, glb, title, init_fn): argument
2407 self.msg_box = QMessageBox(glb.mainwindow)
2410 self.msg_box.setWindowIcon(glb.mainwindow.style().standardIcon(QStyle.SP_MessageBoxInformation))
2412 self.init_thread = Thread(self.ThreadFn, glb)
2420 def ThreadFn(self, glb): argument
2422 db, dbname = glb.dbref.Open(conn_name)
2433 def SlowInit(glb, title, init_fn): argument
2434 init = SlowInitClass(glb, title, init_fn)
2441 def __init__(self, glb, parent=None): argument
2444 self.glb = glb
2445 self.machine_id = glb.HostMachineId()
2450 collection = SlowInit(glb, "Time Chart", self.Init)
2452 self.widget = SwitchGraphWidget(glb, collection, self)
2461 AddSubWindow(glb.mainwindow.mdi_area, self, self.windowTitle())
2464 …return LookupCreateModel(self.collection_name, lambda : SwitchGraphDataCollection(self.glb, db, se…
2656 def __init__(self, glb, sql, prep, process_data, parent=None): argument
2674 glb.AddInstanceToShutdownOnExit(self)
2675 …self.process = Process(target=SQLFetcherFn, args=(glb.dbref, sql, self.buffer, self.head, self.tai…
2885 def __init__(self, glb, row, data, parent_item): argument
2886 self.glb = glb
2909 if not self.glb.have_disassembler:
2912 query = QSqlQuery(self.glb.db)
2953 inst = self.glb.disassembler.Instruction()
2954 f = self.glb.FileFromNamesAndBuildId(short_name, long_name, build_id)
2958 self.glb.disassembler.SetMode(inst, mode)
2967 cnt, text = self.glb.disassembler.DisassembleOne(inst, buf_ptr, buf_sz, ip)
3095 def __init__(self, glb, event_id, where_clause, parent=None): argument
3096 super(BranchModel, self).__init__(glb, None, parent)
3100 self.have_ipc = IsSelectable(glb.db, "samples", columns = "insn_count, cyc_count")
3130 self.fetcher = SQLFetcher(glb, sql, prep, self.AddSample)
3164 child = BranchLevelOneItem(self.glb, self.populated, data, self.root)
3209 def __init__(self, glb, event_id, report_vars, parent=None): argument
3214 …self.model = LookupCreateModel(model_name, lambda: BranchModel(glb, event_id, report_vars.where_cl…
3236 AddSubWindow(glb.mainwindow.mdi_area, self, report_vars.name + " Branch Events")
3285 def __init__(self, glb, label, placeholder_text, parent, id = "", default = ""): argument
3286 self.glb = glb
3359 def __init__(self, glb, label, placeholder_text, column_name, parent): argument
3360 super(NonNegativeIntegerRangesDataItem, self).__init__(glb, label, placeholder_text, parent)
3386 def __init__(self, glb, label, placeholder_text, parent, id = "", default = ""): argument
3387 super(PositiveIntegerDataItem, self).__init__(glb, label, placeholder_text, parent, id, default)
3401 …def __init__(self, glb, label, placeholder_text, table_name, match_column, column_name1, column_na… argument
3402 super(SQLTableDataItem, self).__init__(glb, label, placeholder_text, parent)
3411 query = QSqlQuery(self.glb.db)
3435 def __init__(self, glb, label, placeholder_text, column_name, parent): argument
3442 query = QSqlQuery(glb.db)
3446 self.first_time = int(glb.HostStartTime())
3447 self.last_time = int(glb.HostFinishTime())
3451 super(SampleTimeRangesDataItem, self).__init__(glb, label, placeholder_text, parent)
3461 query = QSqlQuery(self.glb.db)
3557 def __init__(self, glb, title, items, partial, parent=None): argument
3560 self.glb = glb
3567 self.data_items = [x(glb, self) for x in items]
3635 def __init__(self, glb, parent=None): argument
3646 super(SelectedBranchDialog, self).__init__(glb, title, items, True, parent)
3685 def __init__(self, glb, sql, column_headers, parent=None): argument
3687 self.glb = glb
3691 …self.fetcher = SQLFetcher(glb, sql, lambda x, y=len(column_headers): self.SQLTableDataPrep(x, y), …
3745 def __init__(self, glb, table_name, parent=None): argument
3751 query = QSqlQuery(glb.db)
3752 if glb.dbref.is_sqlite3:
3774 super(SQLAutoTableModel, self).__init__(glb, sql, column_headers, parent)
4070 def __init__(self, glb, table_name, parent=None): argument
4073 …self.data_model = LookupCreateModel(table_name + " Table", lambda: SQLAutoTableModel(glb, table_na…
4101 AddSubWindow(glb.mainwindow.mdi_area, self, table_name + " Table")
4117 def GetTableList(glb): argument
4119 query = QSqlQuery(glb.db)
4120 if glb.dbref.is_sqlite3:
4126 if glb.dbref.is_sqlite3:
4138 def __init__(self, glb, report_vars, parent=None): argument
4140 if not glb.dbref.is_sqlite3:
4169 super(TopCallsModel, self).__init__(glb, sql, column_headers, parent)
4178 def __init__(self, glb, parent=None): argument
4188 super(TopCallsDialog, self).__init__(glb, title, items, False, parent)
4194 def __init__(self, glb, report_vars, parent=None): argument
4197 …= LookupCreateModel("Top Calls " + report_vars.UniqueId(), lambda: TopCallsModel(glb, report_vars))
4221 AddSubWindow(glb.mainwindow.mdi_area, self, report_vars.name)
4472 def __init__(self, glb, parent=None): argument
4482 AddSubWindow(glb.mainwindow.mdi_area, self, "Exported SQL Viewer Help")
4529 def __init__(self, glb, parent=None): argument
4541 if glb.dbref.is_sqlite3:
4542 text += "SQLite version: " + SQLiteVersion(glb.db) + "\n"
4544 text += "PostqreSQL version: " + PostqreSQLServerVersion(glb.db) + "\n"
4608 def __init__(self, glb, parent=None): argument
4611 self.glb = glb
4613 self.setWindowTitle("Exported SQL Viewer: " + glb.dbname)
4626 file_menu.addAction(CreateExitAction(glb.app, self))
4637 if IsSelectable(glb.db, "calls"):
4640 if IsSelectable(glb.db, "calls", "WHERE parent_id >= 0"):
4643 self.EventMenu(GetEventList(glb.db), reports_menu)
4645 if IsSelectable(glb.db, "calls"):
4648 if IsSelectable(glb.db, "context_switches"):
4652 self.TableMenu(GetTableList(glb), menu)
4713 TimeChartByCPUWindow(self.glb, self)
4721 CallGraphWindow(self.glb, self)
4724 CallTreeWindow(self.glb, self)
4727 dialog = TopCallsDialog(self.glb, self)
4730 TopCallsWindow(self.glb, dialog.report_vars, self)
4733 BranchWindow(self.glb, event_id, ReportVars(), self)
4736 dialog = SelectedBranchDialog(self.glb, self)
4739 BranchWindow(self.glb, event_id, dialog.report_vars, self)
4742 TableWindow(self.glb, table_name, self)
4745 HelpWindow(self.glb, self)
4748 dialog = AboutDialog(self.glb, self)
5015 glb = Glb(dbref, db, dbname)
5017 glb.app = app
5018 mainwindow = MainWindow(glb)
5019 glb.mainwindow = mainwindow
5022 glb.ShutdownInstances()