Generate Command Line Configuration from GUI
Use the
Intel® VTune™
to automatically generate a command line for an analysis configuration and copy this line to the buffer for running from a terminal window. You can use this approach to run the generated command line configuration on a different system.
Profiler
To generate and apply a command line configuration:
Prerequisites:
Set up your project.
- Run theVTunegraphical interface.Profiler
- Click the(standalone GUI)/
(Visual Studio IDE)
Configure Analysistoolbar button to choose and configure your analysis.TheConfigure Analysiswindow opens. - From theHOWpane, choose a predefined or custom analysis type and configure the required settings.
- Click theCommand Linebutton at the bottom of the window.TheCopy Command Line to Clipboarddialog box opens providing the command line required to launch the selected analysis type configuration. Options with default values are hidden.For predefined analysis types, the-collect <option is applied:analysis-type>For custom analysis types, the-collect-with <collector-type>option is applied:
- Click theCopybutton to copy the command line to the clipboard.
- Paste the copied command line to the shell.
- Optionally, edit the application data in the command line as required.If you analyze a remote application from the local host, make sure to:
- Specify the correct path to the remote application in the command line.
- Use the-target-system=<option to specify your remote target address (for Linux) or device name (for Android). For example:system_details>host>./-target-system=ssh:vtuneuser@hostName-collect hotspots --myapp
- PressEnterto launch the analysis from the command line.VTunecollects the data and saves the result to the analysis result directory under your working directory.Profiler
- Open your data collection result file in the GUI or as a text-based command line report.To enable analyzing the source code, make sure to copy the required symbol/source files from your remote machine and update the search directories in theBinary/Symbol SearchorSource Searchdialog boxes.