Lines Matching +full:vrange +full:- +full:high +full:- +full:enable

2 # SPDX-License-Identifier: GPL-2.0
3 # exported-sql-viewer.py: view data from sql database
4 # Copyright (c) 2014-2018, Intel Corporation.
7 # export-to-sqlite.py or the export-to-postgresql.py script. Refer to those
11 # call-graph can be displayed for the pt_example database like this:
13 # python tools/perf/scripts/python/exported-sql-viewer.py pt_example
18 # python tools/perf/scripts/python/exported-sql-viewer.py "hostname=myhost username=myuser password…
20 # The result is a GUI window with a tree representing a context-sensitive
21 # call-graph. Expanding a couple of levels of the tree and adjusting column
26 # v- ls
27 # v- 2638:2638
28 # v- _start ld-2.19.so 1 10074071 100.0 211135 …
29 # |- unknown unknown 1 13198 0.1 1 …
30 # >- _dl_start ld-2.19.so 1 1400980 13.9 19637 …
31 # >- _d_linit_internal ld-2.19.so 1 448152 4.4 11094 …
32 # v-__libc_start_main@plt ls 1 8211741 81.5 180397 …
33 # >- _dl_fixup ld-2.19.so 1 7607 0.1 108 …
34 # >- __cxa_atexit libc-2.19.so 1 11737 0.1 10 …
35 # >- __libc_csu_init ls 1 10354 0.1 10 …
36 # |- _setjmp libc-2.19.so 1 0 0.0 4 …
37 # v- main ls 1 8182043 99.6 180254 …
57 # ./mfile.py --share
58 # sudo ./mfile.py --prefix=/usr/local install
64 …rupt No ffffffff86a00a67 native_irq_return_iret ([kernel]) -> 7fab593ea260 _start (ld-2.19.so)
66 …22011 22011 hardware interrupt No 7fab593ea260 _start (ld-2.19.so) -> ffffffff86a012…
67 …rupt No ffffffff86a00a67 native_irq_return_iret ([kernel]) -> 7fab593ea260 _start (ld-2.19.so)
70 … No 7fab593ea263 _start+0x3 (ld-2.19.so) -> 7fab593ea930 _dl_start (ld-2.…
85 …2011 hardware interrupt No 7fab593ea94f _dl_start+0x1f (ld-2.19.so) -> ffffffff86a012…
86 … No ffffffff86a00a67 native_irq_return_iret ([kernel]) -> 7fab593ea94f _dl_start+0x1f (ld-2.19…
89 …2011 hardware interrupt No 7fab593ea956 _dl_start+0x26 (ld-2.19.so) -> ffffffff86a012…
113 if not "--pyside-version-1" in sys.argv:
164 return findnth(s[pos + 1:], sub, n - 1, offs + pos + 1)
389 self.prev_button.released.connect(lambda: self.NextPrev(-1))
476 # Context-sensitive call graph data model item base
506 return -1
517 # Context-sensitive call graph data model level 2+ item base
538 …QueryExec(query, "SELECT call_path_id, name, short_name, COUNT(calls.id), SUM(return_time - call_t…
561 # Context-sensitive call graph data model level three item
578 # Context-sensitive call graph data model level two item
606 # Context-sensitive call graph data model level one item
630 # Context-sensitive call graph data model root item
657 # Context-sensitive call graph data model base
736 # Context-sensitive call graph data model
823 …QueryExec(query, "SELECT calls.id, name, short_name, call_time, return_time - call_time" + ipc_str…
1077 # Context-sensitive call graph window
1084 self.model = LookupCreateModel("Context-Sensitive Call Graph", lambda x=glb: CallGraphModel(x))
1097 AddSubWindow(glb.mainwindow.mdi_area, self, "Context-Sensitive Call Graph")
1197 # Container for sub-range data
1273 x = float(Decimal(x) - self.xbase)
1274 y = float(Decimal(y) - self.ybase)
1325 # Schedule-out: detect and add exec's
1329 # Schedule-in: add data point
1351 pid = -1
1352 tid = -1
1449 x1 = x - 1
1457 width = x1 - x0 + 1
1460 painter.drawLine(x0, self.graph_height - y0, x0, self.graph_height)
1462 painter.fillRect(x0, self.graph_height - y0, width, self.graph_height - 1, colour)
1535 # X-axis graphics item
1552 t = subrange.hi - subrange.lo
1577 # Using QPainter::drawLine(int x1, int y1, int x2, int y2) so x2 = width -1
1578 painter.drawLine(0, 0, self.width - 1, 0)
1583 x_offset = n - (subrange.lo % n)
1668 # Switch graph graphics item contains graph title, scale, x/y-axis, and the graphed data
1702 self.yline.setPos(self.graph_origin_x - y_axis_size, self.graph_origin_y - graph_height)
1705 self.axis_point.setPos(self.graph_origin_x - 1, self.graph_origin_y +1)
1711 self.graph.setPos(self.graph_origin_x, self.graph_origin_y - graph_height)
1714 parent.EnableRubberBand(self.graph_origin_x, self.graph_origin_x + graph_width - 1, self)
1723 return self.attrs.PixelToX(x - self.graph_origin_x)
1754 # Graphics item to draw a vertical bracket (used to highlight "forward" sub-range)
1775 x1 = self.width - 1
1776 y1 = self.height - 1
1781 painter.drawLine(0, y1, 0, y1 - 3)
1782 painter.drawLine(x1, y1, x1, y1 - 3)
1874 width = x - self.rb_origin.x()
1877 width = self.rb_origin.x() - x
1878 top_left = QPoint(self.rb_origin.x() - width, self.rb_origin.y())
1972 bottom_right = self.createIndex(row, len(self.column_headers) - 1, child)
2001 self.view.sortByColumn(-1, Qt.AscendingOrder)
2082 return int(round((x - self.subrange.x.lo) * self.scale.x, self.pdp.x))
2085 return int(round((y - self.subrange.y.lo) * self.scale.y, self.pdp.y))
2098 return x - 1
2106 return y - 1
2119 x -= 1
2120 x = -int(math.floor(x) - 0.1)
2144 sz0 = self.size().width() - self.handleWidth() - sz1
2148 sz0 = self.size().width() - self.handleWidth() - sz1
2207 xsubrange = Subrange(0.0, float(collection.xrangehi - collection.xrangelo) + 1.0)
2208 ysubrange = Subrange(0.0, float(collection.yrangehi - collection.yrangelo) + 1.0)
2257 r = xsubrange.hi - xsubrange.lo
2261 # Default graph 50 pixels high
2263 r = ysubrange.hi - ysubrange.lo
2267 # Default graph 1000 pixels wide, 50 pixels high
2275 rel_time_from = time_from - self.glb.StartTime(self.collection.machine_id)
2303 rel_time_from = time_from - self.start_time
2304 rel_time_to = time_to - self.start_time
2306 text = text + " duration: " + ToTimeStr(time_to - time_from)
2337 rel_time_from = time_from - self.start_time
2338 rel_time_to = time_to - self.start_time
2340 title = title + " (" + ToTimeStr(time_to - time_from) + ")"
2369 if x1 - x0 < 1.0:
2391 # Slow initialization - perform non-GUI initialization in a separate thread and put up a modal mess…
2493 return -1
2505 self.pos -= 1
2507 self.pos = len(self.rows) - 1
2510 row = -1
2547 self.last_id = -1
2557 self.query_limit -= 1
2580 space = len(self.buffer) - self.local_head
2588 if self.local_tail - self.local_head > sz:
2634 batch_size = min(glb_chunk_sz, target - self.fetched)
2676 self.process_target.value = -1
2694 count = fetch_count - self.last_count
2701 # -1 inidcates there are no more
2702 return -1
2704 extra = result + nr - self.target
2715 if len(self.buffer) - pos < glb_nsz:
2799 def Enable(self, enable): argument
2800 self.fetch.setEnabled(enable)
2801 self.fetch_count.setEnabled(enable)
2804 self.Enable(False)
2811 self.Enable(True)
2831 percent = ((count - self.start) * 100) / self.Target()
2888 self.br_col = len(self.data) - 1
2942 tot = bsym_start + boff + 1 - sym_start - off
2974 tot -= cnt
2975 buf_sz -= cnt
2982 return -1
3034 " (" + dsoname(query.value(11)) + ")" + " -> " +
3166 count = self.populated - child_count
3169 self.beginInsertRows(parent, child_count, child_count + count - 1)
3348 # Non-negative integer ranges dialog data item
3361 if "-" in value:
3362 vrange = value.split("-")
3363 if len(vrange) != 2 or not self.IsNumber(vrange[0]) or not self.IsNumber(vrange[1]):
3365 ranges.append(vrange)
3484 suffix = val[-2:]
3493 val = val[:-2].strip()
3503 def ConvertTimeRange(self, vrange): argument
3504 if vrange[0] == "":
3505 vrange[0] = str(self.first_time)
3506 if vrange[1] == "":
3507 vrange[1] = str(self.last_time)
3508 vrange[0] = self.ConvertRelativeTime(vrange[0])
3509 vrange[1] = self.ConvertRelativeTime(vrange[1])
3510 if not self.IsNumber(vrange[0]) or not self.IsNumber(vrange[1]):
3512 beg_range = max(int(vrange[0]), self.first_time)
3513 end_range = min(int(vrange[1]), self.last_time)
3516 vrange[0] = self.BinarySearchTime(0, self.last_id, beg_range, True)
3517 vrange[1] = self.BinarySearchTime(1, self.last_id + 1, end_range, False)
3521 n = value.count("-")
3525 if value.split("-")[1].strip() == "":
3531 pos = findnth(value, "-", n)
3532 vrange = [value[:pos].strip() ,value[pos+1:].strip()]
3533 if self.ConvertTimeRange(vrange):
3534 ranges.append(vrange)
3632 …lambda g, p: NonNegativeIntegerRangesDataItem(g, "CPUs:", "Enter CPUs or ranges e.g. 0,5-6", "cpu"…
3702 count = self.populated - child_count
3705 self.beginInsertRows(parent, child_count, child_count + count - 1)
3861 max_width = [0] * (1 + max_col - min_col)
3863 c = i.column() - min_col
3876 c = col - min_col
3883 pad = " " * (width - len(val))
3899 width = max_width[i.column() - min_col]
3905 pad = " " * (width - len(val))
3939 expanded_mark = unicode(chr(0xE2) + chr(0x96) + chr(0xBC) + " ", "utf-8")
3940 not_expanded_mark = unicode(chr(0xE2) + chr(0x96) + chr(0xB6) + " ", "utf-8")
3954 n += (i.internalPointer().level - 1) * indent_sz
3977 pad = " " * (width - len(val))
3997 val = indent_str * (i.internalPointer().level - 1) + mark + val.strip()
4006 pad = " " * (width - len(val))
4075 self.view.sortByColumn(-1, Qt.AscendingOrder)
4143 " call_time, return_time, (return_time - call_time) AS elapsed_time, branch_count, "
4312 self.mdi_area.setActiveSubWindow(self.mdi_area.subWindowList()[nr - 1])
4320 text-indent: 40px;
4323 text-indent: 80px;
4328 <p class=c2><a href=#callgraph>1.1 Context-Sensitive Call Graph</a></p>
4337 <h2 id=callgraph>1.1 Context-Sensitive Call Graph</h2>
4338 The result is a GUI window with a tree representing a context-sensitive
4339 call-graph. Expanding a couple of levels of the tree and adjusting column
4344 v- ls
4345 v- 2638:2638
4346 … v- _start ld-2.19.so 1 10074071 100.0 211135 100.0
4347 … |- unknown unknown 1 13198 0.1 1 0.0
4348 … >- _dl_start ld-2.19.so 1 1400980 13.9 19637 9.3
4349 … >- _d_linit_internal ld-2.19.so 1 448152 4.4 11094 5.3
4350 … v-__libc_start_main@plt ls 1 8211741 81.5 180397 85.4
4351 … >- _dl_fixup ld-2.19.so 1 7607 0.1 108 0.1
4352 … >- __cxa_atexit libc-2.19.so 1 11737 0.1 10 0.0
4353 … >- __libc_csu_init ls 1 10354 0.1 10 0.0
4354 … |- _setjmp libc-2.19.so 1 0 0.0 4 0.0
4355 … v- main ls 1 8182043 99.6 180254 99.9
4368 Ctrl-F displays a Find bar which finds function names by either an exact match or a pattern match.
4371 The Call Tree report is very similar to the Context-Sensitive Call Graph, but the data is not aggre…
4379 <li>The disassembler is available. Currently, only Intel XED is supported - see <a href=#xed>Intel …
4391 ./mfile.py --share
4392 sudo ./mfile.py --prefix=/usr/local install
4402 Ctrl-F displays a Find bar which finds substrings by either an exact match or a regular expression …
4412 81073085947329-81073085958238 From 81073085947329 to 81073085958238
4413 100us-200us From 100us to 200us
4414 10ms- From 10ms to the end
4415 -100ns The first 100ns
4416 -10ms- The last 10ms
4422 If not all data is fetched, a Fetch bar is provided. Ctrl-F displays a Find bar.
4431 <li>If call information is available, right-click to show a call tree opened to that task and time.
4450 <p>There are also tables of database meta-information.
4454 Ctrl-F displays a Find bar which finds substrings by either an exact match or a regular expression …
4457 <p>N.B. Results are found in id order, so if the table is re-ordered, find-next and find-previous
4559 ResizeFont(widget, -1)
4564 # Unique name for sub-windows
4584 # Add a sub-window
4626 …CreateAction("&Shrink Font", "Make text smaller", self.ShrinkFont, self, [QKeySequence("Ctrl+-")]))
4631 …eports_menu.addAction(CreateAction("Context-Sensitive Call &Graph", "Create a new window containin…
4808 inst.state.mode = 4 # 32-bit
4811 inst.state.mode = 1 # 64-bit
4869 self.buildid_dir += "/.build-id/"
4871 self.buildid_dir = self.home_dir + "/.debug/.build-id/"
4917 QueryExec(query, "SELECT id FROM machines WHERE pid = -1")
5064 usage_str = "exported-sql-viewer.py [--pyside-version-1] <database name>\n" \
5065 " or: exported-sql-viewer.py --help-only"
5067 ap.add_argument("--pyside-version-1", action='store_true')
5069 ap.add_argument("--help-only", action='store_true')