Enable analysis of all processes running on the system.
Configure Analysis window > WHAT pane > Advanced section > Analyze system-wide option
For hardware event-based analysis types, no-analyze-system is enabled by default, so only the target process is analyzed. Use analyze-system if you want to analyze all processes running on the system. Data on CPU consumption for these other processes shows how they affect the performance of the target process.
Perform the Hotspots analysis (hardware event-based sampling mode) of all processes running on the system.
$ amplxe-cl -collect hotspots -knob sampling-mode=hw -analyze-system -- /home/test/sample