Skip to content
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

Using the on-device GPU profiler shows no usage #95

Open
crearo opened this issue May 17, 2018 · 2 comments
Open

Using the on-device GPU profiler shows no usage #95

crearo opened this issue May 17, 2018 · 2 comments

Comments

@crearo
Copy link

crearo commented May 17, 2018

I'm using the GPU profiler provided in all Android devices in the Developer options.

Surprisingly, for most grafika activities it does not show any bars. I was expecting it to show a continuous sequence of bars because we're calling several GPU functions (swap buffers, drawArrays).

Show + Capture Acitivity doesn't have any bars, whereas Continuous Capture does and I'm guessing this is because of the flickering [Recording] textview.

Does someone know how to profile the GPU properly?

@crearo
Copy link
Author

crearo commented May 17, 2018

Update :

I removed all textview.setText() calls in Continuous Capture Activity, and there are no bars being drawn. I have left the call to GLES20.glScissor(xpos, 0, width / 32, height / 32); on.

This makes me think that the on device GPU profiler only profiles UI elements, and ignore any calls we make through GLES.

@crearo
Copy link
Author

crearo commented May 18, 2018

Alright, I used the Opengles Tracer in Android Device Monitor and that shows all the GLES commands/functions I run per frame. This is helpful to trace commands, but it provides no profiling related information; example the memory used. From this SO post I understand the wall time and thread time give no useful information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant