I can't get atrace data in the Arm Steamline Performance Analyzer

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.

Parents
  • 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 Linux

    4. I can't find any error log in logcat related to streamline/gator.

    Thanks,
    Kubo

Reply
  • 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 Linux

    4. I can't find any error log in logcat related to streamline/gator.

    Thanks,
    Kubo

Children
  • 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?

    Thanks
    Kavitha