summaryrefslogtreecommitdiff
path: root/GstDebugViewer/GUI
diff options
context:
space:
mode:
authorRené Stadler <mail@renestadler.de>2012-09-21 22:52:25 +0200
committerRené Stadler <mail@renestadler.de>2012-09-21 22:53:53 +0200
commit25cfe9b511cd957578d43deb7e003626571ad4b5 (patch)
tree44f8c8006690b578bad6b51c447a1c62df14335d /GstDebugViewer/GUI
parent481e0932407725ca842badd65a04df32db5eb490 (diff)
timeline: make log level calculation a lot faster
This is the step where the timeline graph gets colored with the individual log level colors. It's roughly 4.5 times faster now. Probably can be made even better, the code also needs a cleanup.
Diffstat (limited to 'GstDebugViewer/GUI')
-rw-r--r--GstDebugViewer/GUI/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/GstDebugViewer/GUI/models.py b/GstDebugViewer/GUI/models.py
index e760b2b..d6482c6 100644
--- a/GstDebugViewer/GUI/models.py
+++ b/GstDebugViewer/GUI/models.py
@@ -129,6 +129,13 @@ class LogModelBase (gtk.GenericTreeModel):
return value
+ def get_value_range (self, col_id, start, stop):
+
+ if col_id != self.COL_LEVEL:
+ raise NotImplementedError ("XXX FIXME")
+
+ return self.line_levels[start:stop]
+
def on_iter_next (self, line_index):
last_index = len (self.line_offsets) - 1