Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Attention massive speed up of the debugger

(1/7) > >>

oBFusCATed:
Hello,
here is a patch that improves the performance of the debugger massively.

The patch: http://smrt.is-a-geek.org/codeblocks/dbg_refactor/dbg_speedup.patch
It is against the debugger branch, but should apply in trunk (I've tested it and it worked against r5853)

How to test:
1. open some project
2. start debugging
3. stop on a breakpoint
4. open as many dbg windows as possible (call stack, threads, watches)
5. add many watches, complex variables are better (vectors will be great)
6. single step, through the code and see how the debugger toolbar is disable while the debugger is processing things

Execute the test before and after you've applied the patch.

What the patch does:
It adds a flag to the PipeProcess class, that controls if we will get notifications for every line of output or a single notification with the whole output.
The default value is set to notification for every line (the old behaviour).
With the patch only the debugger will use the new behaviour.

It seems that event passing is not so cheap in wx after all.

Have fun, feadback is quite welcome

p.s. I'm using the patch for some days now and I've not seen any problems only benefits

oBFusCATed:
No one interested?  :shock: :?  :P

thomas:
I tried to apply your patch, but it complains that debuggergdb.cpp and pipedprocess.h have some mismatching lines.

oBFusCATed:
Can you post the output of the patch command?

I've tried to apply it on trunk and on the debugger branch and it works. (as I've written in my post)

ollydbg:

--- Quote from: oBFusCATed on October 13, 2009, 12:21:02 pm ---No one interested?  :shock: :?  :P

--- End quote ---
I thought it was already applied in the trunk. :D

Navigation

[0] Message Index

[#] Next page

Go to full version