I'm trying to use Snapdragon Profiler to optimize the performance of an Android app that uses OpenCL on my Lenovo Tab 4 with Android 7.1.1.
I am following the steps shown in this video: https://youtu.be/mevcqGF-jhc?t=89 (though I am not using the command line to launch the app and "enable blocking" is set to false)
I want to start a new trace capture and click the corresponding button, but the process list is empty - the app I want to profile never appears there. It does not matter whether its activity is shown.
However, when I launch any other app that uses OpenGL (I tried the NewPipe YouTube player and a couple of others), it appears in this list just fine and the OpenGL ES metric is available.
I can see my app in the process list only when I click the realtime button, but there is no OpenCL metric (or anything related to OpenCL at all) available for the process in the metrics tree view. The same goes for the OpenCL-Z info app (libOpenCL.so is loaded dynamically with dlopen in both cases, can it have something to do with it, btw?)
I also tried to use Adreno Profiler, but could not even connect to my app - it never appeared in the list (but I saw NewPipe there).
The Adreno Profiler docs say that the ADRENO_PROFILER_ENABLE_OPENCL system property must be set to enable profiling for OpenCL apps. However, nothing about it is mentioned in the user guide for Snapdragon Profiler. Could it be the cause?