-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Big delay #17
Comments
Does it happen only with one activity in particular? Can you share a reproducible example? |
curl http://localhost:9987/v2/uiDevice/dumpWindowHierarchy?format=xml --> 1-4 sec delay (especially on first command) |
It greatly depends on the complexity of the Activity and how long it takes UiAutomator to reconstruct the hierarchy. I've run this python example what would be easier to time
and I got
with Calculator but
with Chrome. |
I found that the window has the inlined image banner that is sometimes drawn. When it is not drawn, the dump is very fast and vice versa |
I would be helpful if you can replace |
1.485s PS After inetnt was launched the apk first shows the launched activity and after that (in about 1-3 secs) it also draw the inlined banner. While this banner is not drawed the delay is persist. After the banner was drawn dump executed immediatly |
When I try start an activity of some app and immediately curl dumpWindowHierarchy the command is executed for about three seconds (intent started in about one second). All other cases with dump executed very fast. Why?
The text was updated successfully, but these errors were encountered: