path: root/rbutil/rbutilqt/systrace.h
diff options
authorDominik Riebeling <>2010-05-07 16:18:41 +0000
committerDominik Riebeling <>2010-05-07 16:18:41 +0000
commitfeecb7d4beed9dc58a82201acd692631cdf6d0b3 (patch)
tree4262720fc235b9ff8e896eb45d74a92549598d2e /rbutil/rbutilqt/systrace.h
parent227e619bbfeaf7d5d3112cc35a1865ff96129c5c (diff)
Add repeat counting to system trace.
This make the system trace check for repeating lines, and only print a "(last message repeated n lines.)" instead of the real message multiple times. This keeps the trace much shorter if messages are repeated. The drawback is that the replacement count message will only get printed on the next line getting traced, so until that happens it swallows the repeated lines. Before saving the systrace buffer is flushed, so this should not raise a problem. git-svn-id: svn:// a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/systrace.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/systrace.h b/rbutil/rbutilqt/systrace.h
index 4e6206a886..f15e33c149 100644
--- a/rbutil/rbutilqt/systrace.h
+++ b/rbutil/rbutilqt/systrace.h
@@ -34,8 +34,11 @@ class SysTrace : public QDialog
static QString getTrace() {return debugbuffer;}
static void save(QString filename = "");
+ static void flush(void);
Ui::SysTraceFrm ui;
static QString debugbuffer;
+ static QString lastmessage;
+ static unsigned int repeat;
private slots:
void saveCurrentTrace(void);