Lines Matching +full:master +full:- +full:stats

3 # Copyright (c) 2002-2003, 2009, Jeffrey Roberson <jeff@freebsd.org>
37 # - Install the ports/x11-toolkits/py-tkinter package; e.g.
38 # pkg install x11-toolkits/py-tkinter
39 # - Add KTR_SCHED to KTR_COMPILE and KTR_MASK in your KERNCONF; e.g.
44 # - It is encouraged to increase KTR_ENTRIES size to gather enough
49 # - Rebuild kernel with proper changes to KERNCONF and boot new kernel.
50 # - Run your workload to be profiled.
51 # - While the workload is continuing (i.e. before it finishes), disable
58 # - Dump the trace to a file: 'ktrdump -ct > ktr.out'
59 # - Alternatively, use schedgraph.d script in this directory for getting
61 # - Run the python script: 'python schedgraph.py ktr.out' optionally provide
65 # Add a per-source summary display
67 # Mouse-over popup of full thread/event/row label (currently truncated)
71 # colours to represent them ;-)
129 lineno = -1
170 def __init__(self, master, target): argument
171 Frame.__init__(self, master)
200 def __init__(self, master): argument
201 Frame.__init__(self, master)
217 def __init__(self, master, name, color): argument
218 Frame.__init__(self, master)
294 self.bind("<Control-w>", self.destroycb)
324 def __init__(self, master, source): argument
325 Frame.__init__(self, master)
383 self.bind("<Control-w>", self.destroycb)
497 self.bind("<Control-w>", self.destroycb)
509 self.add_command(label="stats", command=self.stats)
510 self.tk_popup(event.x_root-3, event.y_root+3)
525 def stats(self): member in SourceContext
543 self.bind("<Control-w>", self.destroycb)
577 r.bind("<Button-1>", self.linkpress)
646 if (i != len(self.attrs) - 1):
689 return self.source.eventat(self.idx - 1)
697 self.dispcnt -= 1
717 l = canvas.create_oval(xpos - XY_POINT, ypos,
718 xpos + XY_POINT, ypos - (XY_POINT * 2),
734 self.duration = duration = next.timestamp - self.timestamp
744 xpos + delta, ypos - 10, fill=color, width=0,
762 self.duration = duration = next.timestamp - self.timestamp
772 l = canvas.create_rectangle(xpos, ypos - yhight,
782 cpu = source.events[len(source.events) -1].cpu
790 duration = next.timestamp - self.timestamp
838 if (event.cpu != cpu and event.cpu != -1):
847 ypos = ypos - (self.ysize() / 2)
857 ypos - self.ysize() - canvas.bdheight,
934 # Update the title with some stats from the file
1067 timestamp -2048> self.timestamp_l):
1091 return (self.timestamp_f - self.timestamp_l);
1110 e = PadEvent(source, -1, self.timestamp_l)
1112 e = PadEvent(source, -1, self.timestamp_f, last=1)
1118 def __init__(self, master, display): argument
1120 self.parent = master
1121 self.bdheight = master.bdheight
1125 Canvas.__init__(self, master, width=120,
1154 self.bind("<Button-1>", self.master.mousepress);
1155 self.bind("<Button-3>", self.master.mousepressright);
1156 self.bind("<ButtonRelease-1>", self.master.mouserelease);
1157 self.bind("<B1-Motion>", self.master.mousemotion);
1165 def __init__(self, master): argument
1167 self.parent = master
1168 self.bdheight = master.bdheight
1171 Canvas.__init__(self, master, width=800, height=500, bg='grey',
1180 self.ratio = (ktrfile.timespan() - 1) / 2**31 + 1
1200 self.bind("<Button-1>", self.mousepress)
1201 self.bind("<Button-3>", self.master.mousepressright);
1202 self.bind("<Button-4>", self.wheelup)
1203 self.bind("<Button-5>", self.wheeldown)
1204 self.bind("<ButtonRelease-1>", self.master.mouserelease);
1205 self.bind("<B1-Motion>", self.master.mousemotion);
1227 self.master.mousepress(event)
1236 # Leave the rest to the master window
1237 self.master.mousepress(event)
1243 self.parent.display_yview("scroll", -1, "units")
1261 midpoint = xstart + ((xend - xstart) / 2)
1268 xsize = (xend - xstart) / 2
1269 self.xview_moveto(midpoint - xsize)
1290 def __init__(self, master): argument
1291 Frame.__init__(self, master, bd=2, relief=RAISED)
1313 def __init__(self, master): argument
1314 Frame.__init__(self, master)
1326 self.bind_all("<Control-q>", self.quitcb)
1359 self.master.update()
1369 self.constwidth = width - int(self.display["width"])
1401 # user can't mouseover a non-contiguous area.
1415 return source.y - self.bdheight - source.ysize()
1442 diff = source2.ysize() - source1.ysize()
1445 source1.move(self.display, 0, y1targ - y1)
1446 source2.move(self.display, 0, y2targ - y2)
1447 source1.movename(self.names, 0, y1targ - y1)
1448 source2.movename(self.names, 0, y2targ - y2)
1471 off = newy - self.sourcestart(source)
1472 self.sourceshiftall(newy-1, self.sourcesize(source))
1506 off = (newy + size) - self.sourcestart(source)
1553 self.sourceshift(source, -size)
1564 self.sourceshiftall(start, -self.sourcesize(source))
1609 scalemax = ktrfile.timespan() / (width - self.constwidth)