You can profile Executable and Linkable Format (ELF) binaries using the command-line, or the Streamline GUI.
Ensure your application is compiled with symbols and debug information.
Ensure your Android device is connected to your host computer.
Ensure gatord and the application binary are located in /data/local/tmp on the Android device. To install gatord, see Build gatord yourself.
This task explains how to profile ELF binaries using the command-line. If you want to profile ELF binaries using the Streamline GUI, see Run a command on the target in the Arm Streamline User Guide.
To profile your ELF binaries, use adb to run gatord in local capture mode, and instruct it to run the application that you want to profile on the Android device:
adb shell
cd /data/local/tmp
./gatord -o capture.apc -A <elf_application>
Note
To change the counter configuration, use either the -C argument or the --config-xml argument. See gatord command-line options.
gatord generates a profile on your Android device at /data/local/tmp/capture.apc.
Exit the shell on the Android device, then move the profile to the Streamline data directory:
exit
adb pull /data/local/tmp/capture.apc <streamline-data-directory>
Note
The Streamline data directory is configured in .
Open Streamline on your host computer.
Your profile is available in the Streamline Data tab.
Add the ELF binary file before you analyze a profile of your application in Streamline.
Open Streamline.
In the Streamline Data tab, right-click the profile that you want to analyze.
Click Analyze ....
In the Program Images tab, click Add image.
Select the ELF files that contain the debug symbols for the application and libraries.
Click Analyze.
In the Call Paths and Functions views, the Processes and Functions are named appropriately.
You can now analyze your profile in Streamline. See Analyze your capture in the Arm Streamline User Guide.