projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c749df8
)
Add simple cache eviction to LazyLogModel to limit memory usage
author
René Stadler
<mail@renestadler.de>
Mon, 3 Dec 2007 13:24:20 +0000
(15:24 +0200)
committer
Stefan Sauer
<ensonic@users.sf.net>
Thu, 11 Sep 2014 18:51:42 +0000
(20:51 +0200)
debug-viewer/GstDebugViewer/GUI.py
patch
|
blob
|
history
diff --git
a/debug-viewer/GstDebugViewer/GUI.py
b/debug-viewer/GstDebugViewer/GUI.py
index 87a9a0cd0b71cb54f58cf0203ccb81ef757c76e1..b7c5adf192b121e540a20f09490b40a30e24780f 100755
(executable)
--- a/
debug-viewer/GstDebugViewer/GUI.py
+++ b/
debug-viewer/GstDebugViewer/GUI.py
@@
-343,6
+343,9
@@
class LazyLogModel (LogModelBase):
if line_offset in self.line_cache:
return
+ if len (self.line_cache) > 10000:
+ self.line_cache.clear ()
+
if line_offset == 0:
self.__fileobj.seek (0)
line = self.__fileobj.readline ()