From ba4261f97436310d975cba5e25cc3791c9e75e87 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 22 Sep 2020 15:53:20 -0400 Subject: [PATCH] Add timeit prints --- piker/ui/_graphics.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/piker/ui/_graphics.py b/piker/ui/_graphics.py index 18badc2c..3fe43079 100644 --- a/piker/ui/_graphics.py +++ b/piker/ui/_graphics.py @@ -304,7 +304,7 @@ class BarItems(pg.GraphicsObject): # track the current length of drawable lines within the larger array self.index: int = 0 - @timeit + # @timeit def draw_from_data( self, data: np.recarray, @@ -321,6 +321,7 @@ class BarItems(pg.GraphicsObject): self.index = index self.draw_lines(just_history=True, iend=self.index) + # @timeit def draw_lines( self, istart=0, @@ -440,6 +441,7 @@ class BarItems(pg.GraphicsObject): # XXX: From the customGraphicsItem.py example: # The only required methods are paint() and boundingRect() + # @timeit def paint(self, p, opt, widget): # start = time.time()