Lines Matching refs:glb
206 def __init__(self, glb, params, parent=None): argument
208 self.glb = glb
480 def __init__(self, glb, params, row, parent_item): argument
481 self.glb = glb
521 …def __init__(self, glb, params, row, comm_id, thread_id, call_path_id, time, insn_cnt, cyc_cnt, br… argument
522 super(CallGraphLevelTwoPlusItemBase, self).__init__(glb, params, row, parent_item)
533 query = QSqlQuery(self.glb.db)
557 …child_item = CallGraphLevelThreeItem(self.glb, self.params, self.child_count, self.comm_id, self.t…
565 …def __init__(self, glb, params, row, comm_id, thread_id, call_path_id, name, dso, count, time, ins… argument
566 …super(CallGraphLevelThreeItem, self).__init__(glb, params, row, comm_id, thread_id, call_path_id, …
582 def __init__(self, glb, params, row, comm_id, thread_id, pid, tid, parent_item): argument
583 …super(CallGraphLevelTwoItem, self).__init__(glb, params, row, comm_id, thread_id, 1, 0, 0, 0, 0, p…
610 def __init__(self, glb, params, row, comm_id, comm, parent_item): argument
611 super(CallGraphLevelOneItem, self).__init__(glb, params, row, parent_item)
620 query = QSqlQuery(self.glb.db)
626 …child_item = CallGraphLevelTwoItem(self.glb, self.params, self.child_count, self.dbid, query.value…
634 def __init__(self, glb, params): argument
635 super(CallGraphRootItem, self).__init__(glb, params, 0, None)
639 if IsSelectable(glb.db, "comms", columns = "has_calls"):
640 if_has_calls = " WHERE has_calls = " + glb.dbref.TRUE
641 query = QSqlQuery(glb.db)
646 …child_item = CallGraphLevelOneItem(glb, params, self.child_count, query.value(0), query.value(1), …
654 def __init__(self, glb, parent=None): argument
655 self.have_ipc = IsSelectable(glb.db, "calls", columns = "insn_count, cyc_count")
661 def __init__(self, glb, parent=None): argument
662 super(CallGraphModelBase, self).__init__(glb, CallGraphModelParams(glb), parent)
671 if not self.glb.dbref.is_sqlite3:
727 context.append(Context(value, direction, pattern, QSqlQuery(self.glb.db), None, None))
740 def __init__(self, glb, parent=None): argument
741 super(CallGraphModel, self).__init__(glb, parent)
744 return CallGraphRootItem(self.glb, self.params)
783 q2 = QSqlQuery(self.glb.db)
801 …def __init__(self, glb, params, row, comm_id, thread_id, calls_id, call_time, time, insn_cnt, cyc_… argument
802 super(CallTreeLevelTwoPlusItemBase, self).__init__(glb, params, row, parent_item)
822 query = QSqlQuery(self.glb.db)
839 …child_item = CallTreeLevelThreeItem(self.glb, self.params, self.child_count, self.comm_id, self.th…
847 …def __init__(self, glb, params, row, comm_id, thread_id, calls_id, name, dso, call_time, time, ins… argument
848 …super(CallTreeLevelThreeItem, self).__init__(glb, params, row, comm_id, thread_id, calls_id, call_…
864 def __init__(self, glb, params, row, comm_id, thread_id, pid, tid, parent_item): argument
865 …super(CallTreeLevelTwoItem, self).__init__(glb, params, row, comm_id, thread_id, 0, 0, 0, 0, 0, 0,…
892 def __init__(self, glb, params, row, comm_id, comm, parent_item): argument
893 super(CallTreeLevelOneItem, self).__init__(glb, params, row, parent_item)
902 query = QSqlQuery(self.glb.db)
908 …child_item = CallTreeLevelTwoItem(self.glb, self.params, self.child_count, self.dbid, query.value(…
916 def __init__(self, glb, params): argument
917 super(CallTreeRootItem, self).__init__(glb, params, 0, None)
921 if IsSelectable(glb.db, "comms", columns = "has_calls"):
922 if_has_calls = " WHERE has_calls = " + glb.dbref.TRUE
923 query = QSqlQuery(glb.db)
928 …child_item = CallTreeLevelOneItem(glb, params, self.child_count, query.value(0), query.value(1), s…
936 def __init__(self, glb, parent=None): argument
937 super(CallTreeModel, self).__init__(glb, parent)
940 return CallTreeRootItem(self.glb, self.params)
978 q2 = QSqlQuery(self.glb.db)
1081 def __init__(self, glb, parent=None): argument
1084 self.model = LookupCreateModel("Context-Sensitive Call Graph", lambda x=glb: CallGraphModel(x))
1097 AddSubWindow(glb.mainwindow.mdi_area, self, "Context-Sensitive Call Graph")
1103 def __init__(self, glb, parent=None, thread_at_time=None): argument
1106 self.model = LookupCreateModel("Call Tree", lambda x=glb: CallTreeModel(x))
1119 AddSubWindow(glb.mainwindow.mdi_area, self, "Call Tree")
1300 " AND exec_flag = " + self.collection.glb.dbref.TRUE +
1331 start_time = self.collection.glb.StartTime(self.collection.machine_id)
1373 def __init__(self, glb): argument
1374 self.glb = glb
1398 def __init__(self, glb, db, machine_id): argument
1399 super(SwitchGraphDataCollection, self).__init__(glb)
1404 self.xrangelo = glb.StartTime(machine_id)
1405 self.xrangehi = glb.FinishTime(machine_id)
2183 def __init__(self, glb, collection, parent=None): argument
2186 self.glb = glb
2193 self.start_time = self.glb.StartTime(collection.machine_id)
2275 rel_time_from = time_from - self.glb.StartTime(self.collection.machine_id)
2281 if not IsSelectable(self.glb.db, "calls", "WHERE parent_id >= 0"):
2291 CallTreeWindow(self.glb, self.glb.mainwindow, thread_at_time=args)
2395 def __init__(self, glb, title, init_fn): argument
2400 self.msg_box = QMessageBox(glb.mainwindow)
2403 self.msg_box.setWindowIcon(glb.mainwindow.style().standardIcon(QStyle.SP_MessageBoxInformation))
2405 self.init_thread = Thread(self.ThreadFn, glb)
2413 def ThreadFn(self, glb): argument
2415 db, dbname = glb.dbref.Open(conn_name)
2426 def SlowInit(glb, title, init_fn): argument
2427 init = SlowInitClass(glb, title, init_fn)
2434 def __init__(self, glb, parent=None): argument
2437 self.glb = glb
2438 self.machine_id = glb.HostMachineId()
2443 collection = SlowInit(glb, "Time Chart", self.Init)
2445 self.widget = SwitchGraphWidget(glb, collection, self)
2454 AddSubWindow(glb.mainwindow.mdi_area, self, self.windowTitle())
2457 …return LookupCreateModel(self.collection_name, lambda : SwitchGraphDataCollection(self.glb, db, se…
2649 def __init__(self, glb, sql, prep, process_data, parent=None): argument
2667 glb.AddInstanceToShutdownOnExit(self)
2668 …self.process = Process(target=SQLFetcherFn, args=(glb.dbref, sql, self.buffer, self.head, self.tai…
2878 def __init__(self, glb, row, data, parent_item): argument
2879 self.glb = glb
2902 if not self.glb.have_disassembler:
2905 query = QSqlQuery(self.glb.db)
2946 inst = self.glb.disassembler.Instruction()
2947 f = self.glb.FileFromNamesAndBuildId(short_name, long_name, build_id)
2951 self.glb.disassembler.SetMode(inst, mode)
2960 cnt, text = self.glb.disassembler.DisassembleOne(inst, buf_ptr, buf_sz, ip)
3088 def __init__(self, glb, event_id, where_clause, parent=None): argument
3089 super(BranchModel, self).__init__(glb, None, parent)
3093 self.have_ipc = IsSelectable(glb.db, "samples", columns = "insn_count, cyc_count")
3123 self.fetcher = SQLFetcher(glb, sql, prep, self.AddSample)
3157 child = BranchLevelOneItem(self.glb, self.populated, data, self.root)
3202 def __init__(self, glb, event_id, report_vars, parent=None): argument
3207 …self.model = LookupCreateModel(model_name, lambda: BranchModel(glb, event_id, report_vars.where_cl…
3229 AddSubWindow(glb.mainwindow.mdi_area, self, report_vars.name + " Branch Events")
3278 def __init__(self, glb, label, placeholder_text, parent, id = "", default = ""): argument
3279 self.glb = glb
3352 def __init__(self, glb, label, placeholder_text, column_name, parent): argument
3353 super(NonNegativeIntegerRangesDataItem, self).__init__(glb, label, placeholder_text, parent)
3379 def __init__(self, glb, label, placeholder_text, parent, id = "", default = ""): argument
3380 super(PositiveIntegerDataItem, self).__init__(glb, label, placeholder_text, parent, id, default)
3394 …def __init__(self, glb, label, placeholder_text, table_name, match_column, column_name1, column_na… argument
3395 super(SQLTableDataItem, self).__init__(glb, label, placeholder_text, parent)
3404 query = QSqlQuery(self.glb.db)
3428 def __init__(self, glb, label, placeholder_text, column_name, parent): argument
3435 query = QSqlQuery(glb.db)
3439 self.first_time = int(glb.HostStartTime())
3440 self.last_time = int(glb.HostFinishTime())
3444 super(SampleTimeRangesDataItem, self).__init__(glb, label, placeholder_text, parent)
3454 query = QSqlQuery(self.glb.db)
3550 def __init__(self, glb, title, items, partial, parent=None): argument
3553 self.glb = glb
3560 self.data_items = [x(glb, self) for x in items]
3628 def __init__(self, glb, parent=None): argument
3639 super(SelectedBranchDialog, self).__init__(glb, title, items, True, parent)
3678 def __init__(self, glb, sql, column_headers, parent=None): argument
3680 self.glb = glb
3684 …self.fetcher = SQLFetcher(glb, sql, lambda x, y=len(column_headers): self.SQLTableDataPrep(x, y), …
3738 def __init__(self, glb, table_name, parent=None): argument
3744 query = QSqlQuery(glb.db)
3745 if glb.dbref.is_sqlite3:
3767 super(SQLAutoTableModel, self).__init__(glb, sql, column_headers, parent)
4063 def __init__(self, glb, table_name, parent=None): argument
4066 …self.data_model = LookupCreateModel(table_name + " Table", lambda: SQLAutoTableModel(glb, table_na…
4094 AddSubWindow(glb.mainwindow.mdi_area, self, table_name + " Table")
4110 def GetTableList(glb): argument
4112 query = QSqlQuery(glb.db)
4113 if glb.dbref.is_sqlite3:
4119 if glb.dbref.is_sqlite3:
4131 def __init__(self, glb, report_vars, parent=None): argument
4133 if not glb.dbref.is_sqlite3:
4162 super(TopCallsModel, self).__init__(glb, sql, column_headers, parent)
4171 def __init__(self, glb, parent=None): argument
4181 super(TopCallsDialog, self).__init__(glb, title, items, False, parent)
4187 def __init__(self, glb, report_vars, parent=None): argument
4190 …= LookupCreateModel("Top Calls " + report_vars.UniqueId(), lambda: TopCallsModel(glb, report_vars))
4214 AddSubWindow(glb.mainwindow.mdi_area, self, report_vars.name)
4465 def __init__(self, glb, parent=None): argument
4475 AddSubWindow(glb.mainwindow.mdi_area, self, "Exported SQL Viewer Help")
4522 def __init__(self, glb, parent=None): argument
4534 if glb.dbref.is_sqlite3:
4535 text += "SQLite version: " + SQLiteVersion(glb.db) + "\n"
4537 text += "PostqreSQL version: " + PostqreSQLServerVersion(glb.db) + "\n"
4601 def __init__(self, glb, parent=None): argument
4604 self.glb = glb
4606 self.setWindowTitle("Exported SQL Viewer: " + glb.dbname)
4619 file_menu.addAction(CreateExitAction(glb.app, self))
4630 if IsSelectable(glb.db, "calls"):
4633 if IsSelectable(glb.db, "calls", "WHERE parent_id >= 0"):
4636 self.EventMenu(GetEventList(glb.db), reports_menu)
4638 if IsSelectable(glb.db, "calls"):
4641 if IsSelectable(glb.db, "context_switches"):
4645 self.TableMenu(GetTableList(glb), menu)
4706 TimeChartByCPUWindow(self.glb, self)
4714 CallGraphWindow(self.glb, self)
4717 CallTreeWindow(self.glb, self)
4720 dialog = TopCallsDialog(self.glb, self)
4723 TopCallsWindow(self.glb, dialog.report_vars, self)
4726 BranchWindow(self.glb, event_id, ReportVars(), self)
4729 dialog = SelectedBranchDialog(self.glb, self)
4732 BranchWindow(self.glb, event_id, dialog.report_vars, self)
4735 TableWindow(self.glb, table_name, self)
4738 HelpWindow(self.glb, self)
4741 dialog = AboutDialog(self.glb, self)
5096 glb = Glb(dbref, db, dbname)
5098 glb.app = app
5099 mainwindow = MainWindow(glb)
5100 glb.mainwindow = mainwindow
5103 glb.ShutdownInstances()