Command Syntax
The
command syntax is:
Intel Inspector
inspxe-cl
$ inspxe-cl <-action> [-action-options] [-global-options]
[-- application [application options]]
- inspxe-cl
- The name of theIntel Inspectorcommand line tool.
- <-action>
- The action to perform, such ascollectorreport. There must be only one action per command. So you cannot, for example, collect data and generate a report with the same command.
- [-action-option]
- Action-options modify behavior specific to the action. You can have multiple action-options per action. Using an action-option that does not apply to the action results in a usage error.
- [-global-option]
- Global-options modify behavior in the same manner for all actions. You can have multiple global-options per action.
- [-- application]
- The target application to analyze.
- [application-options]
- Options for the application.
- To access the most current command line documentation: Enterinspxe-cl-help
- To duplicate an analysis performed in theIntel InspectorGUI: Use theCommand Linebutton on theAnalysis Typewindow panes to copy the exact command to the clipboard.
Example #1
Display product version information.
$ inspxe-cl -version
Example #2
This example:
- Runs aDetect Deadlocks and Data Races (ti2)analysis on the applicationmyApp.
- Stores the collected data in a result in the specifiedmyResresult directory, which is created in the current working directory by default.
$ inspxe-cl -collect ti2 -result-dir
./
myResult -- myAppwhere:
- -collect= action
- ti2= argument of action
- -result-dir= action-option
- myResult= argument of action-option
- myApp= target application
If you do not supply an absolute pathname for the application, system path environment settings are used to locate it.
Example #3
This example generates a
mySup.sup
suppression file for all problems in the
specified
myRes
result directory.
$ inspxe-cl -create-suppression-file
./
mySupFile -result-dir
./
myReswhere:
- -create-suppression-file= action
- mySup= argument of action
- -result-dir= action-option
- myRes= argument of action-option
The
tool appends a
inspxe-cl
.sup
extension if no extension is specified.