Intel® VTune™ Amplifier XE and Intel® VTune™ Amplifier for Systems Help

Collecting System-Wide Data from the Command Line

To extend your analysis and collect performance data for other processes running on your system, you may choose between two options:

Note

System-wide collection is available for Hardware Event-based Sampling Collection types only.

System Analysis with a Target Application

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.

Example

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

System Analysis without a Target Application

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.

Example

This example runs a system-wide Advanced Hotspots analysis for 60 seconds.

$ amplxe-cl -collect advanced-hotspots --duration 60

See Also