Add repeat counting to system trace.
commit5a0b9ba19af14de65c605b76d739ba8b1e13edea
authorbluebrother <bluebrother@a1c6a512-1295-4272-9138-f99709370657>
Fri, 7 May 2010 16:18:41 +0000 (7 16:18 +0000)
committerbluebrother <bluebrother@a1c6a512-1295-4272-9138-f99709370657>
Fri, 7 May 2010 16:18:41 +0000 (7 16:18 +0000)
tree4262720fc235b9ff8e896eb45d74a92549598d2e
parent8d0753be7ce833a5ac94110d060293b2d87aba8e
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://svn.rockbox.org/rockbox/trunk@25878 a1c6a512-1295-4272-9138-f99709370657
rbutil/rbutilqt/systrace.cpp
rbutil/rbutilqt/systrace.h