Forums - Profiling native applications

6 posts / 0 new
Last post
Profiling native applications
wawro
Join Date: 15 Mar 14
Posts: 2
Posted: Wed, 2016-12-07 09:14

Hi,

I would like to know if the Adreno Profiler supports profiling native applications on (rooted) Android devices. By native I mean actual executable ELF binaries that are not launched by the Java layer at all.

I had a couple of unsuccessful attempts so far (Nexus 5, Adreno 330), though the properties (debug.egl.profiler) have been set accordingly. The profiler always claims that there is no app running that supports profiling.

 

  • Up1
  • Down0
iloveryoko
Join Date: 26 Dec 16
Posts: 1
Posted: Wed, 2016-12-28 00:18

Same to wawro, I tried Snapdragon Profiler and Adreno Profiler.

either said no device or no app. 

I used msm8996 board, with Adreno 530 GPU.

  • Up1
  • Down0
Carlos Dominguez Moderator
Join Date: 27 Jul 15
Location: San Diego
Posts: 80
Posted: Tue, 2017-01-03 16:42

Is this an OpenGL application you are trying to capture or OpenCL? If your native application initializes EGL with eglInitialize it should work on Adreno Profiler for profiling OpenGL. For OpenCL applications it should work as long as you call clGetPlatformIDs.

  • Up0
  • Down0
wawro
Join Date: 15 Mar 14
Posts: 2
Posted: Fri, 2017-03-17 09:45

Executable in question is a EGL/GLES application, i.e. it uses egInitialize()

  • Up0
  • Down0
Carlos Dominguez Moderator
Join Date: 27 Jul 15
Location: San Diego
Posts: 80
Posted: Thu, 2017-04-13 10:16

@wawro Just to clarify you are trying to use Adreno Profiler and not Snapdragon Profiler with your Nexus 5 right? Since you already verified that the debugging property is set properly I think the other thing to check should be internet permissions. For Adreno Profiler to work on Android apk's you need to enable the internet permission so the profiling layer can communicate back with the tool. I'm curious if something is preventing your native application from opening sockets.

  • Up0
  • Down0
Carlos Dominguez Moderator
Join Date: 27 Jul 15
Location: San Diego
Posts: 80
Posted: Thu, 2017-04-13 10:21

@iloveryoko For your setup as opposed to wawro Adreno Profiler wont work as we only recommend Adreon Profiler for Adreno 300 series and below. Can you please make sure you have started your application on the device after you connect to the device in Snapdragon Profiler? If yours is also a native executable like wawro's then the reply I just did to him might be relevant to you too about making sure your application has internet permissions.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.