You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/install-guides/streamline-cli.md
+56-15Lines changed: 56 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,29 +68,67 @@ Arm recommends that you profile an optimized release build of your application,
68
68
69
69
If you are using the `workflow_topdown_basic option`, ensure that your application workload is at least 20 seconds long, in order to give the core time to capture all of the metrics needed. This time increases linearly as you add more metrics to capture.
70
70
71
-
## Install Streamline CLI Tools
71
+
## Using Python scripts
72
72
73
-
1. Download and extract the Streamline CLI tools on your Arm server:
73
+
The Python scripts provided with Streamline CLI tools require Python 3.8 or later, and depend on several third-party modules. We recommend creating a Python virtual environment containing these modules to run the tools. For example:
1. The `sl-format.py` Python script requires Python 3.8 or later, and depends on several third-party modules. We recommend creating a Python virtual environment containing these modules to run the tools. For example:
The instructions in this guide assume you have added the `<install>/bin/` directory to your `PATH` environment variable, and that you run all Python commands from inside the virtual environment.
93
-
{{% /notice %}}
127
+
For manual download, you can find all available releases here:
tar -xzf Arm_Streamline_CLI_Tools_9.3_linux_arm64.tgz
34
-
```
35
-
36
-
1. Follow the instructions in the [Install Guide](/install-guides/streamline-cli/) to ensure you have everything set up correctly. Arm recommends that you apply the kernel patch as described in this guide, to improve support for capturing function-attributed top-down metrics on Arm systems.
37
-
38
-
1. The `sl-format.py` Python script requires Python 3.8 or later, and depends on several third-party modules. We recommend creating a Python virtual environment containing these modules to run the tools. For example:
The instructions in this guide assume you have added the `<install>/bin/` directory to your `PATH` environment variable, and that you run all Python commands from inside the virtual environment.
51
-
{{% /notice %}}
37
+
The script can also be used to download a specific version, or install to a user-specified directory. Refer to the [Install Guide](/install-guides/streamline-cli/) for details on all the script options.
38
+
39
+
{{% notice %}}
40
+
Follow the instructions in the [Install Guide](/install-guides/streamline-cli/) to ensure you have everything set up correctly. Arm recommends that you apply the kernel patch as described in this guide, to improve support for capturing function-attributed top-down metrics on Arm systems.
41
+
{{% /notice %}}
52
42
53
43
1. Use `sl-record` to capture a raw profile of your application and save the data to a directory on the filesystem.
54
44
55
-
Arm recommends making a profile of at least 20 seconds in duration, which ensures that the profiler can capture a statistically significant number of samples for all of the metrics.
45
+
Arm recommends making a profile of at least 20 seconds in duration, which ensures that the profiler can capture a statistically significant number of samples for all of the metrics.
56
46
57
47
```sh
58
48
sl-record -C workflow_topdown_basic -o <output.apc> -A <your app command-line>
@@ -110,15 +100,15 @@ Arm recommends that you profile an optimized release build of your application,
110
100
111
101
## Capturing a system-wide profile
112
102
113
-
To capture a system-wide profile, which captures all processes and threads, run `sl-record` with the `-S yes` option and omit the `-A` application-specific option and following arguments.
103
+
To capture a system-wide profile, which captures all processes and threads, run `sl-record` with the `-S yes` option and omit the `-A` application-specific option and following arguments.
114
104
115
105
In systems without the kernel patches, system-wide profiles can capture the top-down metrics. To keep the captures to a usable size, it may be necessary to limit the duration of the profiles to less than 5 minutes.
116
106
117
107
## Capturing top-down metrics without the kernel patches
118
108
119
109
To capture top-down metrics in a system without the kernel patches, there are three options available:
120
110
121
-
* To capture a system-wide profile, which captures all processes and threads, run with the `-S yes` option and omit the `-A` application-specific option and following arguments. To keep the captures to a usable size, it may be necessary to limit the duration of the profiles to less than 5 minutes.
111
+
* To capture a system-wide profile, which captures all processes and threads, run with the `-S yes` option and omit the `-A` application-specific option and following arguments. To keep the captures to a usable size, it may be necessary to limit the duration of the profiles to less than 5 minutes.
122
112
123
113
* To reliably capture single-threaded application profile, add the `--inherit no` option to the command line. However, in this mode metrics are only captured forthe first threadin the application process and any child threads or processes are ignored.
0 commit comments