Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

android_ndk_perf: Symbols not appearing in reports. #4

Open
mhess-connectify opened this issue Sep 23, 2015 · 1 comment
Open

android_ndk_perf: Symbols not appearing in reports. #4

mhess-connectify opened this issue Sep 23, 2015 · 1 comment

Comments

@mhess-connectify
Copy link

I'm trying to profile my NDK code, but symbols don't show up in the results. I've followed the steps to enable debuggable builds, and i can see function names using nm on the .a file in my libs folder. But this is what i see in the HTML report:

http://i.imgur.com/7XxJgxk.png

@stewartmiles
Copy link
Contributor

You need to make sure your build is debuggable and contains symbols, e.g if
you're building with ndk-build:

https://developer.android.com/ndk/guides/ndk-build.html#dvr

If you're using fplutil to indirectly build using ant + ndk-build:

http://google.github.io/fplutil/android_ndk_perf.html#android_ndk_perf_building

If you're debugging on an armeabi-v7a architecture device you need to make
sure you've added the -mapcs-frame flag to gcc / clang's command line
(again see
http://google.github.io/fplutil/android_ndk_perf.html#android_ndk_perf_building
)

If you've been incrementally building it may be worth cleaning and
rebuilding with the debugging options enabled to verify you're building
with symbols.

Cheers,
Stewart

On Wed, Sep 23, 2015 at 12:00 PM, mhess-connectify <[email protected]

wrote:

I'm trying to profile my NDK code, but symbols don't show up in the
results. I've followed the steps to enable debuggable builds, and i can see
function names using nm on the .a file in my libs folder. But this is what
i see in the HTML report:

http://i.imgur.com/7XxJgxk.png


Reply to this email directly or view it on GitHub
#4.

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

No branches or pull requests

2 participants