To extend your analysis and collect performance data for other processes running on your system, you may choose between these two options:
Note
System-wide collection is available for hardware event-based sampling analysis 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.
Examples:
Run the Advanced Hotspots analysis for the sample
application and collect data system-wide.
$ amplxe-cl --collect advanced-hotspots --analyze-system -- C:\test\sample.exe
Run the General Exploration analysis for the sample
application, including user tasks specified in your code via the Task API, and collect data system-wide.
$ amplxe-cl --collect general-exploration --knob enable-user-tasks=true
--slow-frames-threshold 40 --fast-frames-threshold 100 -- C:\test\sample.exe
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:
Run a system-wide Advanced Hotspots analysis for 60 seconds.
$ amplxe-cl --collect advanced-hotspots --duration 60