> Because a ViewServer dump is very expensive as it relies heavily on
> reflection and it can take several seconds to perform a dump.

I've already done some work to make ViewDebug less slow.  Right now
my problem isn't performance, it is with the code hanging:

    I have put log statements into ViewServer and ViewDebug, so I see
    that when it hangs: ViewServer calls viewServerWindowCommand(),
    but ViewDebug.dispatchCommand() does not get called.  So
    execution is getting stuck somewhere in between.

Do you have any idea why this might be or suggestions for how to go
about debugging it?

> I would highly recommend you didn't use the ViewServer for this. Why
> don't you just walk the view hierarchy and examine its state?

I do not understand why you would make this recommendation.  Is there
something inherently unreliable with ViewServer?

On May 17, 12:42 pm, Romain Guy <[email protected]> wrote:
> > Examining the possibility of using ViewServer/ViewDebug as part of a test
> > framework -- a way to examine the phone's GUI state after user input.
>
> I would highly recommend you didn't use the ViewServer for this. Why
> don't you just walk the view hierarchy and examine its state?
>
> > What is the problem with the current ViewServer/ViewDebug that might prevent
> > it from being used that often?
>
> Because a ViewServer dump is very expensive as it relies heavily on
> reflection and it can take several seconds to perform a dump.
>
> --
> Romain Guy
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" 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-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to