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:
737 context.append(Context(value, direction, pattern, QSqlQuery(self.glb.db), None, None))
750 def __init__(self, glb, parent=None): argument
751 super(CallGraphModel, self).__init__(glb, parent)
754 return CallGraphRootItem(self.glb, self.params)
793 q2 = QSqlQuery(self.glb.db)
811 …def __init__(self, glb, params, row, comm_id, thread_id, calls_id, call_time, time, insn_cnt, cyc_… argument
812 super(CallTreeLevelTwoPlusItemBase, self).__init__(glb, params, row, parent_item)
832 query = QSqlQuery(self.glb.db)
849 …child_item = CallTreeLevelThreeItem(self.glb, self.params, self.child_count, self.comm_id, self.th…
857 …def __init__(self, glb, params, row, comm_id, thread_id, calls_id, name, dso, call_time, time, ins… argument
858 …super(CallTreeLevelThreeItem, self).__init__(glb, params, row, comm_id, thread_id, calls_id, call_…
874 def __init__(self, glb, params, row, comm_id, thread_id, pid, tid, parent_item): argument
875 …super(CallTreeLevelTwoItem, self).__init__(glb, params, row, comm_id, thread_id, 0, 0, 0, 0, 0, 0,…
902 def __init__(self, glb, params, row, comm_id, comm, parent_item): argument
903 super(CallTreeLevelOneItem, self).__init__(glb, params, row, parent_item)
912 query = QSqlQuery(self.glb.db)
918 …child_item = CallTreeLevelTwoItem(self.glb, self.params, self.child_count, self.dbid, query.value(…
926 def __init__(self, glb, params): argument
927 super(CallTreeRootItem, self).__init__(glb, params, 0, None)
931 if IsSelectable(glb.db, "comms", columns = "has_calls"):
932 if_has_calls = " WHERE has_calls = " + glb.dbref.TRUE
933 query = QSqlQuery(glb.db)
938 …child_item = CallTreeLevelOneItem(glb, params, self.child_count, query.value(0), query.value(1), s…
946 def __init__(self, glb, parent=None): argument
947 super(CallTreeModel, self).__init__(glb, parent)
950 return CallTreeRootItem(self.glb, self.params)
988 q2 = QSqlQuery(self.glb.db)
1091 def __init__(self, glb, parent=None): argument
1094 self.model = LookupCreateModel("Context-Sensitive Call Graph", lambda x=glb: CallGraphModel(x))
1107 AddSubWindow(glb.mainwindow.mdi_area, self, "Context-Sensitive Call Graph")
1113 def __init__(self, glb, parent=None, thread_at_time=None): argument
1116 self.model = LookupCreateModel("Call Tree", lambda x=glb: CallTreeModel(x))
1129 AddSubWindow(glb.mainwindow.mdi_area, self, "Call Tree")
1310 " AND exec_flag = " + self.collection.glb.dbref.TRUE +
1341 start_time = self.collection.glb.StartTime(self.collection.machine_id)
1383 def __init__(self, glb): argument
1384 self.glb = glb
1408 def __init__(self, glb, db, machine_id): argument
1409 super(SwitchGraphDataCollection, self).__init__(glb)
1414 self.xrangelo = glb.StartTime(machine_id)
1415 self.xrangehi = glb.FinishTime(machine_id)
2193 def __init__(self, glb, collection, parent=None): argument
2196 self.glb = glb
2203 self.start_time = self.glb.StartTime(collection.machine_id)
2285 rel_time_from = time_from - self.glb.StartTime(self.collection.machine_id)
2291 if not IsSelectable(self.glb.db, "calls", "WHERE parent_id >= 0"):
2301 CallTreeWindow(self.glb, self.glb.mainwindow, thread_at_time=args)
2405 def __init__(self, glb, title, init_fn): argument
2410 self.msg_box = QMessageBox(glb.mainwindow)
2413 self.msg_box.setWindowIcon(glb.mainwindow.style().standardIcon(QStyle.SP_MessageBoxInformation))
2415 self.init_thread = Thread(self.ThreadFn, glb)
2423 def ThreadFn(self, glb): argument
2425 db, dbname = glb.dbref.Open(conn_name)
2436 def SlowInit(glb, title, init_fn): argument
2437 init = SlowInitClass(glb, title, init_fn)
2444 def __init__(self, glb, parent=None): argument
2447 self.glb = glb
2448 self.machine_id = glb.HostMachineId()
2453 collection = SlowInit(glb, "Time Chart", self.Init)
2455 self.widget = SwitchGraphWidget(glb, collection, self)
2464 AddSubWindow(glb.mainwindow.mdi_area, self, self.windowTitle())
2467 …return LookupCreateModel(self.collection_name, lambda : SwitchGraphDataCollection(self.glb, db, se…
2659 def __init__(self, glb, sql, prep, process_data, parent=None): argument
2677 glb.AddInstanceToShutdownOnExit(self)
2678 …self.process = Process(target=SQLFetcherFn, args=(glb.dbref, sql, self.buffer, self.head, self.tai…
2888 def __init__(self, glb, row, data, parent_item): argument
2889 self.glb = glb
2912 if not self.glb.have_disassembler:
2915 query = QSqlQuery(self.glb.db)
2956 inst = self.glb.disassembler.Instruction()
2957 f = self.glb.FileFromNamesAndBuildId(short_name, long_name, build_id)
2961 self.glb.disassembler.SetMode(inst, mode)
2970 cnt, text = self.glb.disassembler.DisassembleOne(inst, buf_ptr, buf_sz, ip)
3098 def __init__(self, glb, event_id, where_clause, parent=None): argument
3099 super(BranchModel, self).__init__(glb, None, parent)
3103 self.have_ipc = IsSelectable(glb.db, "samples", columns = "insn_count, cyc_count")
3133 self.fetcher = SQLFetcher(glb, sql, prep, self.AddSample)
3167 child = BranchLevelOneItem(self.glb, self.populated, data, self.root)
3212 def __init__(self, glb, event_id, report_vars, parent=None): argument
3217 …self.model = LookupCreateModel(model_name, lambda: BranchModel(glb, event_id, report_vars.where_cl…
3239 AddSubWindow(glb.mainwindow.mdi_area, self, report_vars.name + " Branch Events")
3288 def __init__(self, glb, label, placeholder_text, parent, id = "", default = ""): argument
3289 self.glb = glb
3362 def __init__(self, glb, label, placeholder_text, column_name, parent): argument
3363 super(NonNegativeIntegerRangesDataItem, self).__init__(glb, label, placeholder_text, parent)
3389 def __init__(self, glb, label, placeholder_text, parent, id = "", default = ""): argument
3390 super(PositiveIntegerDataItem, self).__init__(glb, label, placeholder_text, parent, id, default)
3404 …def __init__(self, glb, label, placeholder_text, table_name, match_column, column_name1, column_na… argument
3405 super(SQLTableDataItem, self).__init__(glb, label, placeholder_text, parent)
3414 query = QSqlQuery(self.glb.db)
3438 def __init__(self, glb, label, placeholder_text, column_name, parent): argument
3445 query = QSqlQuery(glb.db)
3449 self.first_time = int(glb.HostStartTime())
3450 self.last_time = int(glb.HostFinishTime())
3454 super(SampleTimeRangesDataItem, self).__init__(glb, label, placeholder_text, parent)
3464 query = QSqlQuery(self.glb.db)
3560 def __init__(self, glb, title, items, partial, parent=None): argument
3563 self.glb = glb
3570 self.data_items = [x(glb, self) for x in items]
3638 def __init__(self, glb, parent=None): argument
3649 super(SelectedBranchDialog, self).__init__(glb, title, items, True, parent)
3688 def __init__(self, glb, sql, column_headers, parent=None): argument
3690 self.glb = glb
3694 …self.fetcher = SQLFetcher(glb, sql, lambda x, y=len(column_headers): self.SQLTableDataPrep(x, y), …
3748 def __init__(self, glb, table_name, parent=None): argument
3754 query = QSqlQuery(glb.db)
3755 if glb.dbref.is_sqlite3:
3777 super(SQLAutoTableModel, self).__init__(glb, sql, column_headers, parent)
4073 def __init__(self, glb, table_name, parent=None): argument
4076 …self.data_model = LookupCreateModel(table_name + " Table", lambda: SQLAutoTableModel(glb, table_na…
4104 AddSubWindow(glb.mainwindow.mdi_area, self, table_name + " Table")
4120 def GetTableList(glb): argument
4122 query = QSqlQuery(glb.db)
4123 if glb.dbref.is_sqlite3:
4129 if glb.dbref.is_sqlite3:
4141 def __init__(self, glb, report_vars, parent=None): argument
4143 if not glb.dbref.is_sqlite3:
4172 super(TopCallsModel, self).__init__(glb, sql, column_headers, parent)
4181 def __init__(self, glb, parent=None): argument
4191 super(TopCallsDialog, self).__init__(glb, title, items, False, parent)
4197 def __init__(self, glb, report_vars, parent=None): argument
4200 …= LookupCreateModel("Top Calls " + report_vars.UniqueId(), lambda: TopCallsModel(glb, report_vars))
4224 AddSubWindow(glb.mainwindow.mdi_area, self, report_vars.name)
4475 def __init__(self, glb, parent=None): argument
4485 AddSubWindow(glb.mainwindow.mdi_area, self, "Exported SQL Viewer Help")
4532 def __init__(self, glb, parent=None): argument
4544 if glb.dbref.is_sqlite3:
4545 text += "SQLite version: " + SQLiteVersion(glb.db) + "\n"
4547 text += "PostqreSQL version: " + PostqreSQLServerVersion(glb.db) + "\n"
4611 def __init__(self, glb, parent=None): argument
4614 self.glb = glb
4616 self.setWindowTitle("Exported SQL Viewer: " + glb.dbname)
4629 file_menu.addAction(CreateExitAction(glb.app, self))
4640 if IsSelectable(glb.db, "calls"):
4643 if IsSelectable(glb.db, "calls", "WHERE parent_id >= 0"):
4646 self.EventMenu(GetEventList(glb.db), reports_menu)
4648 if IsSelectable(glb.db, "calls"):
4651 if IsSelectable(glb.db, "context_switches"):
4655 self.TableMenu(GetTableList(glb), menu)
4716 TimeChartByCPUWindow(self.glb, self)
4724 CallGraphWindow(self.glb, self)
4727 CallTreeWindow(self.glb, self)
4730 dialog = TopCallsDialog(self.glb, self)
4733 TopCallsWindow(self.glb, dialog.report_vars, self)
4736 BranchWindow(self.glb, event_id, ReportVars(), self)
4739 dialog = SelectedBranchDialog(self.glb, self)
4742 BranchWindow(self.glb, event_id, dialog.report_vars, self)
4745 TableWindow(self.glb, table_name, self)
4748 HelpWindow(self.glb, self)
4751 dialog = AboutDialog(self.glb, self)
5018 glb = Glb(dbref, db, dbname)
5020 glb.app = app
5021 mainwindow = MainWindow(glb)
5022 glb.mainwindow = mainwindow
5025 glb.ShutdownInstances()