Version: 3.4.1 (using KDE KDE 3.5.7) Installed from: Debian testing/unstable Packages It turns out that kdevelop debugger redraws its window with frame stack each time a step is occured. And it takes considerable time when there is a lot of threads. Redraw of 20 threads slows down a step approx to 1.5 seconds. Hiding frame stack window does not have any effect on speed.
This problem happens because KDevelop calls -thread-select for every thread, but this information is not very useful until the user open the 'Frame Stack' window.
The Frame Stack window is opened automatically in the current svn version, so this is useful nowadays.
closing as there's no real wish here except "make the integrated debugger faster", which is more-or-less an upstream issue as you'd have the same slowness if you execute the same commands that kdevelop executes. Also as I said the information is useful and shown-by-default nowadays.
I agree that if one executes the same commands by hand the debugger will take the same time to respond but when debugging direct in gdb I don't need to see neither all threads nor the stack after each step. And when I do need to see them I don't bother to wait a bit. So gdb is slow but I disagree that calling -thread-select for every thread is necessary when the frame stack window is not visible. I've been using a modified version of KDevelop that only lists threads and stack when the Frame Stack window becomes (or is) visible and it works very well and very faster. Remember that I'm using an application that has hundreds of threads. Debugging an application with only one or a couple of threads makes the slowness almost imperceptible.
can you attach that patch here? It shouldn't be a problem to integrate it into kdevelop3.
Created attachment 25809 [details] Increases the speed of the debugging process Sorry if this patch is not against the HEAD version but, lately, I've been behind a very restrictive firewall. Basically it adds a verification so the contents of the frame stack window is updated only when it is visible.
Thank you Luiz! On Thursday 03 July 2008 15:14:23 Anderson Luiz da Silva wrote: > ------- Additional Comments From andyluiz yahoo com 2008-07-03 > 13:14 ------- Created an attachment (id=25809) > --> (http://bugs.kde.org/attachment.cgi?id=25809&action=view) > Increases the speed of the debugging process > > Sorry if this patch is not against the HEAD version but, lately, > I've been behind a very restrictive firewall. > > Basically it adds a verification so the contents of the frame stack > window is updated only when it is visible.
*** This bug has been marked as a duplicate of 143977 ***