Lines Matching +full:f +full:- +full:tile

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.…
80 # 7fab593ea944 0f 31 …
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…
94 # Only change warnings if the python -W option was not used
119 if not "--pyside-version-1" in sys.argv:
171 return findnth(s[pos + 1:], sub, n - 1, offs + pos + 1)
396 self.prev_button.released.connect(lambda: self.NextPrev(-1))
483 # Context-sensitive call graph data model item base
513 return -1
524 # Context-sensitive call graph data model level 2+ item base
545 …QueryExec(query, "SELECT call_path_id, name, short_name, COUNT(calls.id), SUM(return_time - call_t…
568 # Context-sensitive call graph data model level three item
585 # Context-sensitive call graph data model level two item
613 # Context-sensitive call graph data model level one item
637 # Context-sensitive call graph data model root item
664 # Context-sensitive call graph data model base
746 # Context-sensitive call graph data model
833 …QueryExec(query, "SELECT calls.id, name, short_name, call_time, return_time - call_time" + ipc_str…
1087 # Context-sensitive call graph window
1094 self.model = LookupCreateModel("Context-Sensitive Call Graph", lambda x=glb: CallGraphModel(x))
1107 AddSubWindow(glb.mainwindow.mdi_area, self, "Context-Sensitive Call Graph")
1207 # Container for sub-range data
1283 x = float(Decimal(x) - self.xbase)
1284 y = float(Decimal(y) - self.ybase)
1335 # Schedule-out: detect and add exec's
1339 # Schedule-in: add data point
1361 pid = -1
1362 tid = -1
1459 x1 = x - 1
1467 width = x1 - x0 + 1
1470 painter.drawLine(x0, self.graph_height - y0, x0, self.graph_height)
1472 painter.fillRect(x0, self.graph_height - y0, width, self.graph_height - 1, colour)
1545 # X-axis graphics item
1562 t = subrange.hi - subrange.lo
1587 # Using QPainter::drawLine(int x1, int y1, int x2, int y2) so x2 = width -1
1588 painter.drawLine(0, 0, self.width - 1, 0)
1593 x_offset = n - (subrange.lo % n)
1678 # Switch graph graphics item contains graph title, scale, x/y-axis, and the graphed data
1712 self.yline.setPos(self.graph_origin_x - y_axis_size, self.graph_origin_y - graph_height)
1715 self.axis_point.setPos(self.graph_origin_x - 1, self.graph_origin_y +1)
1721 self.graph.setPos(self.graph_origin_x, self.graph_origin_y - graph_height)
1724 parent.EnableRubberBand(self.graph_origin_x, self.graph_origin_x + graph_width - 1, self)
1733 return self.attrs.PixelToX(x - self.graph_origin_x)
1764 # Graphics item to draw a vertical bracket (used to highlight "forward" sub-range)
1785 x1 = self.width - 1
1786 y1 = self.height - 1
1791 painter.drawLine(0, y1, 0, y1 - 3)
1792 painter.drawLine(x1, y1, x1, y1 - 3)
1884 width = x - self.rb_origin.x()
1887 width = self.rb_origin.x() - x
1888 top_left = QPoint(self.rb_origin.x() - width, self.rb_origin.y())
1982 bottom_right = self.createIndex(row, len(self.column_headers) - 1, child)
2011 self.view.sortByColumn(-1, Qt.AscendingOrder)
2092 return int(round((x - self.subrange.x.lo) * self.scale.x, self.pdp.x))
2095 return int(round((y - self.subrange.y.lo) * self.scale.y, self.pdp.y))
2108 return x - 1
2116 return y - 1
2129 x -= 1
2130 x = -int(math.floor(x) - 0.1)
2154 sz0 = self.size().width() - self.handleWidth() - sz1
2158 sz0 = self.size().width() - self.handleWidth() - sz1
2217 xsubrange = Subrange(0.0, float(collection.xrangehi - collection.xrangelo) + 1.0)
2218 ysubrange = Subrange(0.0, float(collection.yrangehi - collection.yrangelo) + 1.0)
2267 r = xsubrange.hi - xsubrange.lo
2273 r = ysubrange.hi - ysubrange.lo
2285 rel_time_from = time_from - self.glb.StartTime(self.collection.machine_id)
2313 rel_time_from = time_from - self.start_time
2314 rel_time_to = time_to - self.start_time
2316 text = text + " duration: " + ToTimeStr(time_to - time_from)
2347 rel_time_from = time_from - self.start_time
2348 rel_time_to = time_to - self.start_time
2350 title = title + " (" + ToTimeStr(time_to - time_from) + ")"
2379 if x1 - x0 < 1.0:
2401 # Slow initialization - perform non-GUI initialization in a separate thread and put up a modal mess…
2503 return -1
2515 self.pos -= 1
2517 self.pos = len(self.rows) - 1
2520 row = -1
2557 self.last_id = -1
2567 self.query_limit -= 1
2590 space = len(self.buffer) - self.local_head
2598 if self.local_tail - self.local_head > sz:
2644 batch_size = min(glb_chunk_sz, target - self.fetched)
2686 self.process_target.value = -1
2704 count = fetch_count - self.last_count
2711 # -1 inidcates there are no more
2712 return -1
2714 extra = result + nr - self.target
2725 if len(self.buffer) - pos < glb_nsz:
2841 percent = ((count - self.start) * 100) / self.Target()
2898 self.br_col = len(self.data) - 1
2952 tot = bsym_start + boff + 1 - sym_start - off
2957 f = self.glb.FileFromNamesAndBuildId(short_name, long_name, build_id)
2958 if not f:
2960 mode = 0 if Is64Bit(f) else 1
2965 f.seek(sym_start + off)
2966 buf.value = f.read(buf_sz)
2984 tot -= cnt
2985 buf_sz -= cnt
2992 return -1
3044 " (" + dsoname(query.value(11)) + ")" + " -> " +
3176 count = self.populated - child_count
3179 self.beginInsertRows(parent, child_count, child_count + count - 1)
3358 # Non-negative integer ranges dialog data item
3371 if "-" in value:
3372 vrange = value.split("-")
3494 suffix = val[-2:]
3503 val = val[:-2].strip()
3531 n = value.count("-")
3535 if value.split("-")[1].strip() == "":
3541 pos = findnth(value, "-", n)
3642 …lambda g, p: NonNegativeIntegerRangesDataItem(g, "CPUs:", "Enter CPUs or ranges e.g. 0,5-6", "cpu"…
3712 count = self.populated - child_count
3715 self.beginInsertRows(parent, child_count, child_count + count - 1)
3871 max_width = [0] * (1 + max_col - min_col)
3873 c = i.column() - min_col
3886 c = col - min_col
3893 pad = " " * (width - len(val))
3909 width = max_width[i.column() - min_col]
3915 pad = " " * (width - len(val))
3949 expanded_mark = unicode(chr(0xE2) + chr(0x96) + chr(0xBC) + " ", "utf-8")
3950 not_expanded_mark = unicode(chr(0xE2) + chr(0x96) + chr(0xB6) + " ", "utf-8")
3964 n += (i.internalPointer().level - 1) * indent_sz
3987 pad = " " * (width - len(val))
4007 val = indent_str * (i.internalPointer().level - 1) + mark + val.strip()
4016 pad = " " * (width - len(val))
4085 self.view.sortByColumn(-1, Qt.AscendingOrder)
4153 " call_time, return_time, (return_time - call_time) AS elapsed_time, branch_count, "
4262 return CreateAction("&Tile", "Tile the windows", mdi_area.tileSubWindows, mdi_area)
4322 self.mdi_area.setActiveSubWindow(self.mdi_area.subWindowList()[nr - 1])
4330 text-indent: 40px;
4333 text-indent: 80px;
4338 <p class=c2><a href=#callgraph>1.1 Context-Sensitive Call Graph</a></p>
4347 <h2 id=callgraph>1.1 Context-Sensitive Call Graph</h2>
4348 The result is a GUI window with a tree representing a context-sensitive
4349 call-graph. Expanding a couple of levels of the tree and adjusting column
4354 v- ls
4355 v- 2638:2638
4356 … v- _start ld-2.19.so 1 10074071 100.0 211135 100.0
4357 … |- unknown unknown 1 13198 0.1 1 0.0
4358 … >- _dl_start ld-2.19.so 1 1400980 13.9 19637 9.3
4359 … >- _d_linit_internal ld-2.19.so 1 448152 4.4 11094 5.3
4360 … v-__libc_start_main@plt ls 1 8211741 81.5 180397 85.4
4361 … >- _dl_fixup ld-2.19.so 1 7607 0.1 108 0.1
4362 … >- __cxa_atexit libc-2.19.so 1 11737 0.1 10 0.0
4363 … >- __libc_csu_init ls 1 10354 0.1 10 0.0
4364 … |- _setjmp libc-2.19.so 1 0 0.0 4 0.0
4365 … v- main ls 1 8182043 99.6 180254 99.9
4378 Ctrl-F displays a Find bar which finds function names by either an exact match or a pattern match.
4381 The Call Tree report is very similar to the Context-Sensitive Call Graph, but the data is not aggre…
4389 <li>The disassembler is available. Currently, only Intel XED is supported - see <a href=#xed>Intel …
4401 ./mfile.py --share
4402 sudo ./mfile.py --prefix=/usr/local install
4412 Ctrl-F displays a Find bar which finds substrings by either an exact match or a regular expression …
4422 81073085947329-81073085958238 From 81073085947329 to 81073085958238
4423 100us-200us From 100us to 200us
4424 10ms- From 10ms to the end
4425 -100ns The first 100ns
4426 -10ms- The last 10ms
4432 If not all data is fetched, a Fetch bar is provided. Ctrl-F displays a Find bar.
4441 <li>If call information is available, right-click to show a call tree opened to that task and time.
4460 <p>There are also tables of database meta-information.
4464 Ctrl-F displays a Find bar which finds substrings by either an exact match or a regular expression …
4467 <p>N.B. Results are found in id order, so if the table is re-ordered, find-next and find-previous
4569 ResizeFont(widget, -1)
4574 # Unique name for sub-windows
4594 # Add a sub-window
4636 …CreateAction("&Shrink Font", "Make text smaller", self.ShrinkFont, self, [QKeySequence("Ctrl+-")]))
4641 …eports_menu.addAction(CreateAction("Context-Sensitive Call &Graph", "Create a new window containin…
4760 def Is64Bit(f): argument
4763 pos = f.tell()
4764 f.seek(0)
4765 header = f.read(7)
4766 f.seek(pos)
4791 self.buildid_dir += "/.build-id/"
4793 self.buildid_dir = self.home_dir + "/.debug/.build-id/"
4814 f = TryOpen(file_name) if file_name else None
4815 if f:
4816 return f
4818 f = TryOpen(long_name)
4819 if f:
4820 return f
4821 f = self.FileFromBuildId(build_id)
4822 if f:
4823 return f
4839 QueryExec(query, "SELECT id FROM machines WHERE pid = -1")
4986 usage_str = "exported-sql-viewer.py [--pyside-version-1] <database name>\n" \
4987 " or: exported-sql-viewer.py --help-only"
4989 ap.add_argument("--pyside-version-1", action='store_true')
4991 ap.add_argument("--help-only", action='store_true')
5009 f = open(dbname, "rb")
5010 if f.read(15) == b'SQLite format 3':
5012 f.close()