ARM® DS-5 Streamline User Guide

Version 5.22


Table of Contents

Preface
About this book
Using this book
Glossary
Typographic conventions
Feedback
Other information
1 Target Setup
1.1 Features of Streamline Ultimate, Professional, and Community Editions
1.2 Standards compliance in Streamline
1.3 Streamline prerequisites
1.4 Setup scenarios for Linux targets
1.4.1 Comparison of user space gator and kernel space gator
1.4.2 Validating the target setup
1.4.3 Building and installing user space gator
1.4.4 Building and installing kernel space gator
1.5 Preparing and building your Linux kernel
1.6 Required kernel configuration menu options
1.7 Building the gator daemon
1.8 Building the gator module
1.9 Running the gator daemon on your target
1.10 Connecting to an Android target using Ethernet
1.11 Starting a capture session
1.12 Stopping the gator daemon
1.13 gatord command-line options
1.14 Setting up Streamline to support an ARM® Mali™-based device
1.15 Setting up Streamline to support ARM® Mali™-V500
1.16 Recommended compiler options
2 The Streamline Data View
2.1 Opening the Streamline Data view
2.2 Streamline Data view toolbar options
2.3 Capture color-coding
2.4 The Connection Browser dialog box
2.5 Analysis Data Locations dialog box options
2.6 Duplicating a capture
3 Capture and Analysis Options
3.1 Opening the Capture & Analysis Options dialog box
3.2 Capture & Analysis Options dialog box settings
4 Counter Configuration
4.1 Opening the Counter Configuration dialog box
4.2 Counter Configuration dialog box structure
4.3 Adding new events to the Events to Collect list
4.4 Removing events from the Events to Collect list
4.5 Counter Configuration toolbar options
4.6 Events specific to ARM® Mali™ technology
4.7 Event-based sampling
4.8 Setting up event-based sampling
5 The Live View
5.1 Live view overview
5.2 Live view toolbar options
5.3 Automatic image transfer
6 The Timeline View
6.1 Timeline view overview
6.2 The Cross Section Marker
6.3 Timeline view charts
6.4 Timeline view details panel overview
6.5 Heat Map mode
6.6 Core Map and Cluster Map modes
6.7 Processes mode
6.8 OpenCL mode
6.9 Timeline view toolbar
6.10 Timeline view contextual menu options
6.11 Timeline view keyboard shortcuts
6.12 The Timeline view Samples HUD
6.13 Filtering using the caliper controls
6.14 Adding bookmarks to the Timeline view
6.15 Timeline view charts specific to ARM® Mali™-based targets
6.16 The Warnings tag
6.17 Changing the quality of graphics in the Timeline view
6.18 Timeline view chart configuration
6.19 Chart configuration toolbar options
6.20 Chart configuration series options
6.21 Counter classes
6.22 Snippets menu
6.23 Adding an existing chart using the Snippets menu
6.24 Adding a new chart to the Timeline view using the Snippets menu
6.25 Snippets menu contextual menu options
6.26 Snippets menu buttons
6.27 Visual Annotation in the Timeline view
7 The Table Views: Call Paths and Functions
7.1 Toolbar options in the table views
7.2 Call Paths view contextual menu options
7.3 Functions view contextual menu options
7.4 Keyboard shortcuts in the table views
7.5 Sorting table reports
7.6 Call Paths view column headers
7.7 Functions view column headers
8 The Code View
8.1 Code view basics
8.2 Selecting rows in the Code view
8.3 Path prefix substitution in the Code view
8.4 Using the Find field in the Code view
8.5 Code view toolbar options
8.6 Code view keyboard shortcuts
9 Streamline Annotate
9.1 Annotate overview
9.2 Adding string annotations to your code
9.3 Visual Annotate overview
9.4 Adding Visual Annotate to your code
9.5 Kernel annotations
9.6 Annotate macros
9.7 Importing the Streamline_annotate example
10 The Log View
10.1 Log view column headers
10.2 Log view search fields and toolbar options
10.3 Log view contextual menu options
10.4 Log view totals panel
11 Capturing Energy Data
11.1 Energy Probe overview
11.2 Energy Probe requirements
11.3 Shunt resistor selection for Energy Probe
11.4 Setting up Energy Probe
11.5 Adding the caiman application to Streamline
11.6 Updating your firmware
11.7 Energy Probe data in Streamline
11.8 Applying manual offsets to align energy data
11.9 Setting up National Instrument Multifunction Data Acquisition devices (NI-DAQ) to capture energy data
12 Advanced Customizations
12.1 Capturing data on your target without an Ethernet connection
12.2 Creating a configuration.xml file
12.3 Capturing energy data locally and importing it to a capture
12.4 Using the gator_events_mmapped.c custom counters example
12.5 Creating custom performance counters with kernel space gator
12.6 gator_events functions
12.7 Creating filesystem and ftrace counters
12.8 Attributes for custom, filesystem, and ftrace counters in the events XML file
12.9 Enabling Android atrace annotations
12.10 Getting L2C-310 memory-mapped peripherals working with Streamline
12.11 Profiling the Linux kernel
12.12 Re-analyzing Stored Streamline Capture Data
12.13 Streamline preferences
13 Troubleshooting Common Streamline Issues
13.1 Troubleshooting target connection issues
13.2 Troubleshooting report issues
14 Using Streamline on the Command Line
14.1 Opening a Streamline-enabled command prompt or shell
14.2 Streamline command-line options
14.3 Outputting command-line data to a file
Glossary

List of Figures

1-1 Starting a capture session
2-1 The Streamline Data view
2-2 Color-coded captures
2-3 Connection Browser in Streamline
2-4 Automatically setting up Streamline on the target
2-5 Duplicating a capture
3-1 The Capture & Analysis Options button
3-2 The Capture & Analysis Options dialog box
3-3 Symbols loaded icon
4-1 The Streamline Data view - Counter Configuration
4-2 The Counter Configuration dialog box
4-3 The Interface drop-down menu
4-4 Setting up event-based sampling
5-1 The Live view
5-2 Specifying a regex in the Live view
6-1 The Timeline view
6-2 A Cross Section Marker blurred line
6-3 The CPU Activity chart with two threads selected in the Heat Map
6-4 The Quick Access tooltip
6-5 Moving a chart using the handle control
6-6 Using the chart disclosure control to show per cluster data
6-7 Process bars in Heat Map mode
6-8 Filter button
6-9 Core Map mode with two cores
6-10 Cluster Map mode with two clusters
6-11 OpenCL mode in the Timeline view
6-12 A gap between commands in OpenCL mode
6-13 A selected command in OpenCL mode
6-14 Zooming out in OpenCL mode
6-15 OpenCL mode tooltip
6-16 Filtering in OpenCL mode
6-17 The zoom level drop-down menu
6-18 Timeline view Samples HUD
6-19 Using the calipers to filter
6-20 Adding a bookmark
6-21 A bookmark overlay
6-22 Charts in the Timeline view specific to Mali-based targets
6-23 The Warnings tag
6-24 The chart configuration button
6-25 The chart configuration panel for the Clock chart
6-26 Y-axis range modifier
6-27 A filled chart
6-28 A line chart
6-29 A bar chart
6-30 A stacked chart
6-31 Data from series A obstructed by data from series B
6-32 Logarithmic scale
6-33 Series options
6-34 Counter classes
6-35 The Snippets menu
6-36 Visual annotation in the Timeline view
7-1 A multi-level sort
8-1 The Code view
8-2 Missing source file
8-3 The Path Prefix Substitutions dialog box
8-4 The Find field
9-1 Custom Activity Maps
9-2 String annotation overlays
9-3 Visual Annotate in the Timeline view
10-1 Visual annotation in the Log view
10-2 Log view totals panel
11-1 Energy Probe schematic
11-2 Energy Probe electrical connection example
11-3 Connection to target
11-4 The populated Tool Path field
11-5 Energy Probe data in the Timeline view
11-6 The Energy Offset menu
11-7 Connections for NI USB-621x
12-1 The Sine counter in the Timeline view
12-2 The Analyze dialog box
12-3 Streamline Preferences dialog box
12-4 Hybrid (default) color scheme
12-5 Dark color scheme
12-6 Light color scheme
14-1 A functions report generated using report mode
14-2 The Timeline view in a text file

Release Information

Document History
Issue Date Confidentiality Change
A 19 October 2010 Non-Confidential ARM Streamline Performance Analyzer 1.0
B 19 January 2011 Non-Confidential Update for DS-5 version 5.4
C 19 April 2011 Non-Confidential Update for DS-5 version 5.5
D 19 July 2011 Non-Confidential Update for DS-5 version 5.6
E 19 September 2011 Non-Confidential Update for DS-5 version 5.7
F 19 November 2011 Non-Confidential Update for DS-5 version 5.8
G 19 February 2012 Non-Confidential Update for DS-5 version 5.9
H 19 May 2012 Non-Confidential Update for DS-5 version 5.10
I 19 July 2012 Non-Confidential Update for DS-5 version 5.11
J 19 October 2012 Non-Confidential Update for DS-5 version 5.12
K 19 December 2012 Non-Confidential Update for DS-5 version 5.13
L 15 March 2013 Non-Confidential Update for DS-5 version 5.14
M 14 June 2013 Non-Confidential Update for DS-5 version 5.15
N 13 September 2013 Non-Confidential Update for DS-5 version 5.16
O 13 December 2013 Non-Confidential Update for DS-5 version 5.17
P 14 March 2014 Non-Confidential Update for DS-5 version 5.18
Q 27 June 2014 Non-Confidential Update for DS-5 version 5.19
R 17 October 2014 Non-Confidential Update for DS-5 version 5.20
S 20 March 2015 Non-Confidential Update for DS-5 version 5.21
T 15 July 2015 Non-Confidential Update for DS-5 version 5.22

Non-Confidential Proprietary Notice

This document is protected by copyright and other related rights and the practice or implementation of the information contained in this document may be protected by one or more patents or pending patent applications. No part of this document may be reproduced in any form by any means without the express prior written permission of ARM. No license, express or implied, by estoppel or otherwise to any intellectual property rights is granted by this document unless specifically stated.
Your access to the information in this document is conditional upon your acceptance that you will not use or permit others to use the information for the purposes of determining whether implementations infringe any third party patents.
THIS DOCUMENT IS PROVIDED “AS IS”. ARM PROVIDES NO REPRESENTATIONS AND NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY, SATISFACTORY QUALITY, NON-INFRINGEMENT OR FITNESS FOR A PARTICULAR PURPOSE WITH RESPECT TO THE DOCUMENT. For the avoidance of doubt, ARM makes no representation with respect to, and has undertaken no analysis to identify or understand the scope and content of, third party patents, copyrights, trade secrets, or other rights.
This document may include technical inaccuracies or typographical errors.
TO THE EXTENT NOT PROHIBITED BY LAW, IN NO EVENT WILL ARM BE LIABLE FOR ANY DAMAGES, INCLUDING WITHOUT LIMITATION ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, PUNITIVE, OR CONSEQUENTIAL DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF ANY USE OF THIS DOCUMENT, EVEN IF ARM HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
This document consists solely of commercial items. You shall be responsible for ensuring that any use, duplication or disclosure of this document complies fully with any relevant export laws and regulations to assure that this document or any portion thereof is not exported, directly or indirectly, in violation of such export laws. Use of the word “partner” in reference to ARM’s customers is not intended to create or refer to any partnership relationship with any other company. ARM may make changes to this document at any time and without notice.
If any of the provisions contained in these terms conflict with any of the provisions of any signed written agreement covering this document with ARM, then the signed written agreement prevails over and supersedes the conflicting provisions of these terms. This document may be translated into other languages for convenience, and you agree that if there is any conflict between the English version of this document and any translation, the terms of the English version of the Agreement shall prevail.
Copyright © [2010-2015], ARM Limited or its affiliates. All rights reserved.
ARM Limited. Company 02557590 registered in England.
110 Fulbourn Road, Cambridge, England CB1 9NJ.
LES-PRE-20349

Confidentiality Status

This document is Non-Confidential. The right to use, copy and disclose this document may be subject to license restrictions in accordance with the terms of the agreement entered into by ARM and the party that ARM delivered this document to.
Unrestricted Access is an ARM internal classification.

Product Status

The information in this document is Final, that is for a developed product.

Web Address

Non-ConfidentialPDF file icon PDF versionARM DUI0482T
Copyright © 2010-2015 ARM. All rights reserved.