In my project I've implemented a custom view that does a substantial
amount of processing when rendering itself. When I attach the debugger
to my application I'm experiencing so much slowdown that the application
is essentially not useable anymore. Due to the increased time taken by
certain methods gestures are no longer recognized correctly and
interaction with the view no longer works due to this.
I've profiled my view with and without the debugger attached and it
looks to me like every single method call has at least a fixed amount of
method call overhead when the debugger is attached. Since the code in
question calls a large number of very short 'getter' methods quite a lot
the total slowdown is quite extensive. My hunch is that this type of
code suffers the most from the 'attached debugger cost' and since this
is probably atypical code most people don't experience this problem in
their applications.
My question is if there's a way to improve this situation. Changing the
code is not really an option; the code in question is part of an API
that I cannot easily change. Is there perhaps someway to exclude certain
classes from being 'debuggable' or something like that?
Pepijn
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en