I am trying to capture atrace data from an Android device using the Arm Streamline Performance Analyzer.
But I cannot find any atrace data. The log view also shows no output.
I would appreciate any guidance or suggestions on how to resolve this issue.
**Environment**
-I followed the instructions provided in the documentation:
Arm Streamline Target Setup Guide for Android
-In the "Select Counters" settings, I also confirmed the atrace events are enabled.
-When I capture trace data using Perfetto, I am able to obtain the atrace events, indicating that atrace is enabled on the Android device.
Hi,Could you please share the apc captured with Streamline? Does the apc have gator logs as well, if not could you capture one using -d option in gator?Also which version of Streamline are you using?Thanks,Kavitha
Hi,
Thank you for your comment.
Following is the apc with Streamline using -d option in gator.
Streamline version: 9.6.0.
Thank you for sharing the capture, we will check and get back.
If possible and not done before: please reboot the Android target before taking another capture.
To make sure the capture contains all debug data:
1. Replace gatord command line in "Profile your system" with:
./gatord --system-wide=yes -d -L
2. After the capture completed:
3. Share the exported capture (apc.zip) with us
Thanks,
Michal
Here is the capture data obtained according to the procedure. Could you please check it?
https://drive.google.com/file/d/1Y_WamFN2lPWaaxKrpphnZF_XY0zOB5En/view?usp=sharing
If there is any missing data, please let me know so I can retrieve it again.
Kubo
Hi Kubo,We tried to debug the capture you have provided and looks like it has no atrace events captured.Could you please check the following for us.1. Check if the notify.dex is copied at the right location and is executed.2. Make sure you are running as root, if you are doing a System wide capture.3. Have you tried Application capture (-A option in gator) or from Start View in Streamline and selecting an app for profiling?4. Can you check in logcat and see if there are any errors logged?If you are still not able to, it might be a device specific thing, would you be able to try on a different one and see.Unfortunately we are not able to reproduce the issue in our device farm. ThanksKavitha
Hi Kavitha,
Thank you for your response. Here are my answers to your questions:1. I have placed the notify.dex in the same directory as gatord (/data/local/tmp).Is there any specific command I need to execute to ensure it runs correctly?
2. I executed the following commands:
adb root adb shell ./data/local/tmp/gatord --system-wide=yes &
and I am currently in a situation where TCP connection is established.3. When you mention "Application capture," does that mean selecting Android (adb) instead of TCP in the Streamline GUI?If so, the manual states that for atrace capture, a TCP connection is required, which seems contradictory.Or is the -A option equivalent to selecting Android (adb)?
Also, could you please clarify how to use the -A option?According to the following page, -A option requires cmd/args, but I'm not sure what specific cmd/args are neccesary.Arm Streamline Target Setup Guide for Linux4. I can't find any error log in logcat related to streamline/gator.Thanks,Kubo
Hi Kubo,Thanks for checking this, looks like you have notify.dex in the right path, sorry I meant to say if you could check it is executable.
-A is kind of equivalent, for android you will have to use --android-pkg(-l) and --android-activity(-m) to do the same with an apk ref gator --help for more info. If you are using the GUI , trying to make a capture from Start view - Android , will automatically handle all this for you. I think what we could try next is probably, sharing a gator arm_64 build with some additional logging so you could run that and share the log with us.Also could you please share the details of the device you are using, is it public device?ThanksKavitha