You copied the Doc URL to your clipboard.

Performance analysis of the threads application running on Arm® Linux

Arm® Streamline is a graphical performance analysis tool. It captures a wide variety of statistics about code running on the target and uses them to generate analysis reports. You can use these to identify problem areas at system, process, and thread level, in addition to hot spots in the code.


This tutorial uses the threads_v7A example application to show how to use Streamline to capture and analyze profiling data from a Linux target. threads_v7A and threads_v8A are two of the Arm Linux application examples that are provided with DS-5.

Before capturing the data, ensure that:

  1. You have built the threads_v7A application.

  2. You know the IP address or network name of the target. To find the IP address, you can use the ifconfig application in a Linux console. The IP address is denoted by the inet addr.

  3. The Linux kernel on the target is configured to work with Streamline.

  4. The gator daemon, gatord, is running on the target. If not, the simplest way to install and run gatord on the target is to use the Setup Target... button in the Connection Browser dialog. The Connection Browser dialog is accessible through the Streamline Data view by clicking on the Browse for a target button.

  5. SSH and gdbserver are running on the target.


  • For more information about building and running the threads application on a Linux target see the readme.html supplied in the same directory as the source code for the example.

  • For more information about how to configure your target for Streamline, see the Streamline User Guide.


  1. Launch Eclipse for DS-5 and open the DS-5 Debug perspective.
  2. In the Remote Systems view, define a connection to the target using the Define a connection to remote system button .
  3. Launch the Streamline application.
  4. Specify the IP address or network name of the target in the Address field. Alternatively, use the Browse for a target button, as shown in the following screenshot:

    Figure 4-28 Streamline Data view

    Streamline Data view

  5. Click the Capture & analysis options button. In the Program Images section, select the threads image from the workspace, then select Save.
  6. In Eclipse for DS-5, select Run > Debug configurations... then select the threads-gdbserver debug configuration. This configuration downloads the application to the target, starts gdbserver on the target and starts executing the application, stopping at main().
  7. Connect to the target either by clicking on Debug in the Debug Configurations dialog, or by right clicking on the connection in the Debug Control and selecting Connect to target.
  8. The program stops at main(). To start capturing data, switch to the Streamline application and click the Start capture button . Give the capture file a unique name. The Live view opens in Streamline, displaying the capture data in real time.
  9. In Eclipse for DS-5, click Continue to continue executing the code.
  10. When the application terminates, stop the capture in Streamline by clicking the Stop capture and analyze button .

Streamline automatically analyzes the capture data and produces a report, which it displays in the Timeline view, as shown in the following screenshot:

Figure 4-29 Streamline analysis report for the threads application

Streamline analysis report for the threads application

Was this page helpful? Yes No