Remote analysis on Android* systems is supported in the Intel® VTune™ Amplifier 2014 for Systems, part of the Intel® System Studio.
For accurate module resolution and source analysis of your Android* application, make sure to specify search paths for binary and source files when configuring performance analysis:
from command line, use the
--source-search-diroptions; for example:
host>./amplxe-cl --collect advanced-hotspots -r system_wide_r@@@ --search-dir ~/AndroidOS_repo/out/target/product/ctp_pr1/symbols/
If you have not set the project search directories at the time of collection or import, you will not be able to open the source code. Only Assembly view will be available for source analysis.
Consider the following when adding search paths:
By default, the VTune Amplifier pulls many binaries from the target device.
[vmlinux]is one file that does not contain symbols on the target device. Typically it is located in
Many operating system binaries with symbols are located in either
[AndroidOSBuildDir]/out/target/product/[your target]/symbols, or
Application binaries with symbols are located in
Application source files for the C/C++ modules are usually located in
[AndroidAppBuildDir]/jni, not in
[AndroidAppBuildDir]/src(where the Java *source files are). Some third-party software in Android does not provide binaries with symbols. You must contact the third party to get a version of the binaries with symbols.
You can see if a binary has symbols by using the
filecommand in Linux and make sure that it says
file MyBinary.ext MyBinary.ext: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped