| |||
Home > ARM DS-5 tutorials > Performance analysis of threads application running on ARM Linux |
ARM Streamline is a graphical performance analysis tool. It provides timeline and analysis reports that highlight problem areas at system, process, and thread level, in addition to hot spots in the applications.
Before capturing the analysis data, ensure that:
You obtain the IP address of the target. You can use the ifconfig application in a Linux console. The IP address is denoted by the inet addr.
The ARM Linux Kernel is configured for Streamline.
The threads application is copied to the target.
The gator daemon is running on the target.
To capture the data:
Launch Eclipse.
Launch a terminal shell and connect it to the target. You can use the terminal shell provided with Remote System Explorer (RSE).
In the terminal shell, navigate to the directory
where you copied the threads
application.
Ensure that you are in the C/C++ Perspective.
Create a target connection:
Select the Change capture options... toolbar icon in the Streamline Capture Data view.
In the Name field, enter a suitable name for the new configuration.
In the Connection panel, enter the IP address or name and the associated port number for the connection between the host workstation and the target.
In the Capture panel, accept the default settings or customize as required.
Click on Add Program... or Add program from Workspace... in the Program Images panel to open a dialog box where you can select the application image.
Navigate to the threads application and click on Open or OK to close the dialog box.
Click on Apply to save the settings.
To start capturing the data, click on the Start capture toolbar icon in the Streamline Capture Data view.
In the terminal shell, execute the following command to run the threads application:
./threads
After you have completed running the threads application, return to the C/C++ Perspective in Eclipse.
Click on the report in the Streamline Capture Data view to analyze the graphical data.
A Streamline Analysis Data file is generated automatically when you stop capturing the data or you can double-click on an existing analysis file to view it in the Editor.
ARM® DS-5™ Using Eclipse: