Lines Matching refs:glb
212 def __init__(self, glb, params, parent=None): argument
214 self.glb = glb
486 def __init__(self, glb, params, row, parent_item): argument
487 self.glb = glb
527 …def __init__(self, glb, params, row, comm_id, thread_id, call_path_id, time, insn_cnt, cyc_cnt, br… argument
528 super(CallGraphLevelTwoPlusItemBase, self).__init__(glb, params, row, parent_item)
539 query = QSqlQuery(self.glb.db)
563 …child_item = CallGraphLevelThreeItem(self.glb, self.params, self.child_count, self.comm_id, self.t…
571 …def __init__(self, glb, params, row, comm_id, thread_id, call_path_id, name, dso, count, time, ins… argument
572 …super(CallGraphLevelThreeItem, self).__init__(glb, params, row, comm_id, thread_id, call_path_id, …
588 def __init__(self, glb, params, row, comm_id, thread_id, pid, tid, parent_item): argument
589 …super(CallGraphLevelTwoItem, self).__init__(glb, params, row, comm_id, thread_id, 1, 0, 0, 0, 0, p…
616 def __init__(self, glb, params, row, comm_id, comm, parent_item): argument
617 super(CallGraphLevelOneItem, self).__init__(glb, params, row, parent_item)
626 query = QSqlQuery(self.glb.db)
632 …child_item = CallGraphLevelTwoItem(self.glb, self.params, self.child_count, self.dbid, query.value…
640 def __init__(self, glb, params): argument
641 super(CallGraphRootItem, self).__init__(glb, params, 0, None)
645 if IsSelectable(glb.db, "comms", columns = "has_calls"):
646 if_has_calls = " WHERE has_calls = " + glb.dbref.TRUE
647 query = QSqlQuery(glb.db)
652 …child_item = CallGraphLevelOneItem(glb, params, self.child_count, query.value(0), query.value(1), …
660 def __init__(self, glb, parent=None): argument
661 self.have_ipc = IsSelectable(glb.db, "calls", columns = "insn_count, cyc_count")
667 def __init__(self, glb, parent=None): argument
668 super(CallGraphModelBase, self).__init__(glb, CallGraphModelParams(glb), parent)
677 if not self.glb.dbref.is_sqlite3:
733 context.append(Context(value, direction, pattern, QSqlQuery(self.glb.db), None, None))
746 def __init__(self, glb, parent=None): argument
747 super(CallGraphModel, self).__init__(glb, parent)
750 return CallGraphRootItem(self.glb, self.params)
789 q2 = QSqlQuery(self.glb.db)
807 …def __init__(self, glb, params, row, comm_id, thread_id, calls_id, call_time, time, insn_cnt, cyc_… argument
808 super(CallTreeLevelTwoPlusItemBase, self).__init__(glb, params, row, parent_item)
828 query = QSqlQuery(self.glb.db)
845 …child_item = CallTreeLevelThreeItem(self.glb, self.params, self.child_count, self.comm_id, self.th…
853 …def __init__(self, glb, params, row, comm_id, thread_id, calls_id, name, dso, call_time, time, ins… argument
854 …super(CallTreeLevelThreeItem, self).__init__(glb, params, row, comm_id, thread_id, calls_id, call_…
870 def __init__(self, glb, params, row, comm_id, thread_id, pid, tid, parent_item): argument
871 …super(CallTreeLevelTwoItem, self).__init__(glb, params, row, comm_id, thread_id, 0, 0, 0, 0, 0, 0,…
898 def __init__(self, glb, params, row, comm_id, comm, parent_item): argument
899 super(CallTreeLevelOneItem, self).__init__(glb, params, row, parent_item)
908 query = QSqlQuery(self.glb.db)
914 …child_item = CallTreeLevelTwoItem(self.glb, self.params, self.child_count, self.dbid, query.value(…
922 def __init__(self, glb, params): argument
923 super(CallTreeRootItem, self).__init__(glb, params, 0, None)
927 if IsSelectable(glb.db, "comms", columns = "has_calls"):
928 if_has_calls = " WHERE has_calls = " + glb.dbref.TRUE
929 query = QSqlQuery(glb.db)
934 …child_item = CallTreeLevelOneItem(glb, params, self.child_count, query.value(0), query.value(1), s…
942 def __init__(self, glb, parent=None): argument
943 super(CallTreeModel, self).__init__(glb, parent)
946 return CallTreeRootItem(self.glb, self.params)
984 q2 = QSqlQuery(self.glb.db)
1087 def __init__(self, glb, parent=None): argument
1090 self.model = LookupCreateModel("Context-Sensitive Call Graph", lambda x=glb: CallGraphModel(x))
1103 AddSubWindow(glb.mainwindow.mdi_area, self, "Context-Sensitive Call Graph")
1109 def __init__(self, glb, parent=None, thread_at_time=None): argument
1112 self.model = LookupCreateModel("Call Tree", lambda x=glb: CallTreeModel(x))
1125 AddSubWindow(glb.mainwindow.mdi_area, self, "Call Tree")
1306 " AND exec_flag = " + self.collection.glb.dbref.TRUE +
1337 start_time = self.collection.glb.StartTime(self.collection.machine_id)
1379 def __init__(self, glb): argument
1380 self.glb = glb
1404 def __init__(self, glb, db, machine_id): argument
1405 super(SwitchGraphDataCollection, self).__init__(glb)
1410 self.xrangelo = glb.StartTime(machine_id)
1411 self.xrangehi = glb.FinishTime(machine_id)
2189 def __init__(self, glb, collection, parent=None): argument
2192 self.glb = glb
2199 self.start_time = self.glb.StartTime(collection.machine_id)
2281 rel_time_from = time_from - self.glb.StartTime(self.collection.machine_id)
2287 if not IsSelectable(self.glb.db, "calls", "WHERE parent_id >= 0"):
2297 CallTreeWindow(self.glb, self.glb.mainwindow, thread_at_time=args)
2401 def __init__(self, glb, title, init_fn): argument
2406 self.msg_box = QMessageBox(glb.mainwindow)
2409 self.msg_box.setWindowIcon(glb.mainwindow.style().standardIcon(QStyle.SP_MessageBoxInformation))
2411 self.init_thread = Thread(self.ThreadFn, glb)
2419 def ThreadFn(self, glb): argument
2421 db, dbname = glb.dbref.Open(conn_name)
2432 def SlowInit(glb, title, init_fn): argument
2433 init = SlowInitClass(glb, title, init_fn)
2440 def __init__(self, glb, parent=None): argument
2443 self.glb = glb
2444 self.machine_id = glb.HostMachineId()
2449 collection = SlowInit(glb, "Time Chart", self.Init)
2451 self.widget = SwitchGraphWidget(glb, collection, self)
2460 AddSubWindow(glb.mainwindow.mdi_area, self, self.windowTitle())
2463 …return LookupCreateModel(self.collection_name, lambda : SwitchGraphDataCollection(self.glb, db, se…
2655 def __init__(self, glb, sql, prep, process_data, parent=None): argument
2673 glb.AddInstanceToShutdownOnExit(self)
2674 …self.process = Process(target=SQLFetcherFn, args=(glb.dbref, sql, self.buffer, self.head, self.tai…
2884 def __init__(self, glb, row, data, parent_item): argument
2885 self.glb = glb
2908 if not self.glb.have_disassembler:
2911 query = QSqlQuery(self.glb.db)
2952 inst = self.glb.disassembler.Instruction()
2953 f = self.glb.FileFromNamesAndBuildId(short_name, long_name, build_id)
2957 self.glb.disassembler.SetMode(inst, mode)
2966 cnt, text = self.glb.disassembler.DisassembleOne(inst, buf_ptr, buf_sz, ip)
3094 def __init__(self, glb, event_id, where_clause, parent=None): argument
3095 super(BranchModel, self).__init__(glb, None, parent)
3099 self.have_ipc = IsSelectable(glb.db, "samples", columns = "insn_count, cyc_count")
3129 self.fetcher = SQLFetcher(glb, sql, prep, self.AddSample)
3163 child = BranchLevelOneItem(self.glb, self.populated, data, self.root)
3208 def __init__(self, glb, event_id, report_vars, parent=None): argument
3213 …self.model = LookupCreateModel(model_name, lambda: BranchModel(glb, event_id, report_vars.where_cl…
3235 AddSubWindow(glb.mainwindow.mdi_area, self, report_vars.name + " Branch Events")
3284 def __init__(self, glb, label, placeholder_text, parent, id = "", default = ""): argument
3285 self.glb = glb
3358 def __init__(self, glb, label, placeholder_text, column_name, parent): argument
3359 super(NonNegativeIntegerRangesDataItem, self).__init__(glb, label, placeholder_text, parent)
3385 def __init__(self, glb, label, placeholder_text, parent, id = "", default = ""): argument
3386 super(PositiveIntegerDataItem, self).__init__(glb, label, placeholder_text, parent, id, default)
3400 …def __init__(self, glb, label, placeholder_text, table_name, match_column, column_name1, column_na… argument
3401 super(SQLTableDataItem, self).__init__(glb, label, placeholder_text, parent)
3410 query = QSqlQuery(self.glb.db)
3434 def __init__(self, glb, label, placeholder_text, column_name, parent): argument
3441 query = QSqlQuery(glb.db)
3445 self.first_time = int(glb.HostStartTime())
3446 self.last_time = int(glb.HostFinishTime())
3450 super(SampleTimeRangesDataItem, self).__init__(glb, label, placeholder_text, parent)
3460 query = QSqlQuery(self.glb.db)
3556 def __init__(self, glb, title, items, partial, parent=None): argument
3559 self.glb = glb
3566 self.data_items = [x(glb, self) for x in items]
3634 def __init__(self, glb, parent=None): argument
3645 super(SelectedBranchDialog, self).__init__(glb, title, items, True, parent)
3684 def __init__(self, glb, sql, column_headers, parent=None): argument
3686 self.glb = glb
3690 …self.fetcher = SQLFetcher(glb, sql, lambda x, y=len(column_headers): self.SQLTableDataPrep(x, y), …
3744 def __init__(self, glb, table_name, parent=None): argument
3750 query = QSqlQuery(glb.db)
3751 if glb.dbref.is_sqlite3:
3773 super(SQLAutoTableModel, self).__init__(glb, sql, column_headers, parent)
4069 def __init__(self, glb, table_name, parent=None): argument
4072 …self.data_model = LookupCreateModel(table_name + " Table", lambda: SQLAutoTableModel(glb, table_na…
4100 AddSubWindow(glb.mainwindow.mdi_area, self, table_name + " Table")
4116 def GetTableList(glb): argument
4118 query = QSqlQuery(glb.db)
4119 if glb.dbref.is_sqlite3:
4125 if glb.dbref.is_sqlite3:
4137 def __init__(self, glb, report_vars, parent=None): argument
4139 if not glb.dbref.is_sqlite3:
4168 super(TopCallsModel, self).__init__(glb, sql, column_headers, parent)
4177 def __init__(self, glb, parent=None): argument
4187 super(TopCallsDialog, self).__init__(glb, title, items, False, parent)
4193 def __init__(self, glb, report_vars, parent=None): argument
4196 …= LookupCreateModel("Top Calls " + report_vars.UniqueId(), lambda: TopCallsModel(glb, report_vars))
4220 AddSubWindow(glb.mainwindow.mdi_area, self, report_vars.name)
4471 def __init__(self, glb, parent=None): argument
4481 AddSubWindow(glb.mainwindow.mdi_area, self, "Exported SQL Viewer Help")
4528 def __init__(self, glb, parent=None): argument
4540 if glb.dbref.is_sqlite3:
4541 text += "SQLite version: " + SQLiteVersion(glb.db) + "\n"
4543 text += "PostqreSQL version: " + PostqreSQLServerVersion(glb.db) + "\n"
4607 def __init__(self, glb, parent=None): argument
4610 self.glb = glb
4612 self.setWindowTitle("Exported SQL Viewer: " + glb.dbname)
4625 file_menu.addAction(CreateExitAction(glb.app, self))
4636 if IsSelectable(glb.db, "calls"):
4639 if IsSelectable(glb.db, "calls", "WHERE parent_id >= 0"):
4642 self.EventMenu(GetEventList(glb.db), reports_menu)
4644 if IsSelectable(glb.db, "calls"):
4647 if IsSelectable(glb.db, "context_switches"):
4651 self.TableMenu(GetTableList(glb), menu)
4712 TimeChartByCPUWindow(self.glb, self)
4720 CallGraphWindow(self.glb, self)
4723 CallTreeWindow(self.glb, self)
4726 dialog = TopCallsDialog(self.glb, self)
4729 TopCallsWindow(self.glb, dialog.report_vars, self)
4732 BranchWindow(self.glb, event_id, ReportVars(), self)
4735 dialog = SelectedBranchDialog(self.glb, self)
4738 BranchWindow(self.glb, event_id, dialog.report_vars, self)
4741 TableWindow(self.glb, table_name, self)
4744 HelpWindow(self.glb, self)
4747 dialog = AboutDialog(self.glb, self)
5102 glb = Glb(dbref, db, dbname)
5104 glb.app = app
5105 mainwindow = MainWindow(glb)
5106 glb.mainwindow = mainwindow
5109 glb.ShutdownInstances()