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 Arm Streamline to capture and analyze profiling data from a Linux target.
threads_v8A are two of the Arm Linux application examples that are provided with Arm Development Studio.
Before capturing the data, ensure that:
- For more information about building and running the
threadsapplication on a Linux target see the
readme.htmlsupplied in the same directory as the source code for the example.
- For more information about how to configure your target for Arm Streamline, see the Arm Streamline User Guide.
- Launch Arm Development Studio.
In the Remote Systems view, click
and define a connection to the target
- Launch the Arm Streamline application.
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 10-8 Streamline Data view
Click the Capture & analysis options button. In the Program Images section, select the
threadsimage from the workspace, then select Save.
In Arm DS select Run > Debug configurations... then select the
threads-gdbserverdebug configuration. This configuration downloads the application to the target, starts
gdbserveron the target and starts executing the application, stopping at
- Connect to the target either by clicking Debug in the Debug Configurations dialog, or by right-clicking on the connection in the Debug Control view and selecting Connect to target.
The program stops at
main(). To start capturing data, switch to the Streamline application and click . Give the capture file a unique name. The Live view opens in Streamline, displaying the capture data in real time.
- In Arm DS, click Continue to continue executing the code.
When the application terminates, in Arm Streamline, click
to stop the capture.
Arm Streamline automatically analyzes the capture data and produces a report, which it displays in the Timeline view, as shown in the following screenshot:
Figure 10-9 analysis report for the threads application