First at all, ensure you are using latest VTune Amplifier XE 2011 Update3.
My opinion isthat you can try to collect data in short time first, assume that your application is running (whatever it was luanched from GUI, or command line...)
Use "ps -axe" to get pid ofprocess, or use application name directly (if no two application running with same name).
You can try - ("n"means number for "n seconds", e.g. n=120 for 2 minutes)
amplxe-cl -collecthotspots -duration n -target-process program, OR
amplxe-cl -collecthotspots -duration n -target-pid pid
After data collecting completed, resultdirectory will be generated - then you can use amplxe-gui to open results.
Did you have any problem when you run command? I verified both on CLI and GUI without any problem - I specified "Automatically stop collection after (sec) 10" in Projeict Properties, and running application is eclipse.
Sothere wasno problem to stop data collection after 10 sec, and eclipse still is running. I can see report - Elapsed Time is 10 sec around.
My version -
[root@NHM02 ~]# amplxe-cl -version
Intel VTune Amplifier XE 2011 Update 3 (build 150226) Command Line Tool
Copyright (C) 2009-2011 Intel Corporation. All rights reserved.
Thank you againforthe update.
One thing is - "hotspots analysis" is only for application only (user mode), for some code (e.g. device driver) working on system mode, it's not adequate...you may try "lightweight-hotspots", verify which is the hottest module, which is the hottest function.
amplxe-cl -collectlightweight-hotspots -duration30 -target-pid pid
Another thing - program may spend less CPU time on main process, and most of time was spent on spawned process, so target pid should be spawned process.
Have a great weekend, you too.