Add timeit prints
parent
561cafbe55
commit
ba4261f974
|
@ -304,7 +304,7 @@ class BarItems(pg.GraphicsObject):
|
||||||
# track the current length of drawable lines within the larger array
|
# track the current length of drawable lines within the larger array
|
||||||
self.index: int = 0
|
self.index: int = 0
|
||||||
|
|
||||||
@timeit
|
# @timeit
|
||||||
def draw_from_data(
|
def draw_from_data(
|
||||||
self,
|
self,
|
||||||
data: np.recarray,
|
data: np.recarray,
|
||||||
|
@ -321,6 +321,7 @@ class BarItems(pg.GraphicsObject):
|
||||||
self.index = index
|
self.index = index
|
||||||
self.draw_lines(just_history=True, iend=self.index)
|
self.draw_lines(just_history=True, iend=self.index)
|
||||||
|
|
||||||
|
# @timeit
|
||||||
def draw_lines(
|
def draw_lines(
|
||||||
self,
|
self,
|
||||||
istart=0,
|
istart=0,
|
||||||
|
@ -440,6 +441,7 @@ class BarItems(pg.GraphicsObject):
|
||||||
|
|
||||||
# XXX: From the customGraphicsItem.py example:
|
# XXX: From the customGraphicsItem.py example:
|
||||||
# The only required methods are paint() and boundingRect()
|
# The only required methods are paint() and boundingRect()
|
||||||
|
# @timeit
|
||||||
def paint(self, p, opt, widget):
|
def paint(self, p, opt, widget):
|
||||||
# start = time.time()
|
# start = time.time()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue