Intel® VTune™ Amplifier XE and Intel® VTune™ Amplifier for Systems Help
To extend your analysis and collect performance data for other processes running on your system, you may choose between two options:
System-wide collection is available for Hardware Event-based Sampling Collection types only.
To analyze your target application AND all other processes running on your system at the moment, specify your application and enable system-wide analysis with the -analyze-system option. In this mode, the collection duration is defined by the duration of your application execution.
This mode is particularly convenient for types of the collection that require an application to be launched. For example, you may run a Frame or Task analysis (available for application targets only) and collect system-wide data at the same time.
This example runs the Advanced Hotspots analysis for the sample application and collects data system-wide.
$ amplxe-cl -collect advanced-hotspots -analyze-system -- home/test/sample
The following example runs the General Exploration analysis for the sample application, including user tasks specified in your code via the Task API, and collects data system-wide.
$ amplxe-cl -collect general-exploration -knob enable-user-tasks=true -- home/test/sample
To profile your system without specifying a target application (equal to the Profile System target type in GUI), you just need to specify the collection duration.
This example runs a system-wide Advanced Hotspots analysis for 60 seconds.
$ amplxe-cl -collect advanced-hotspots --duration 60