Attach a collection to a running process specified by the process ID.

GUI Equivalent

Configure Analysis window> WHAT pane > Attach To Process > PID


-target-pid <value>


ID of process that you want to analyze.

Actions Modified

collect, collect-with


Use the target-pid option to attach a collect or collect-with action to a running process specified by its process ID (pid).

Alternate Options

The target-process option provides the same capabilities, but uses the process name to specify the process.


Attach a hotspots collection to a running process whose ID is 1234.

 $ amplxe-cl -collect hotspots -target-pid 1234
Para obter informações mais completas sobre otimizações do compilador, consulte nosso aviso de otimização.
Selecione a cor do botão adesivo: 
Orange (only for download buttons)