Cannot use user-defined hotspots in command line?

Some VTune Amplifier XE 2011 users prefer to collect performance data using command line interface. The VTune Amplifier XE 2011 provides command line interface to support users to collect performance data using command line interface but just for predefined analysis types. However, with the release of the VTune™ Amplifier XE 2011 Update 3, you can now collect hardware-based sampling data by configuring specific events via the command-line interface such as:

 

Case 1)      Hardware PMU event-based sampling analysis (User-defined)

Case 2)      User-mode sampling and tracing analysis (User-defined)

 

For case 1), please refer to "Event Configuration from the Command Line" article to know How-to do this analysis. The article documents information about configuring those events.

 

For case 2), (User-mode sampling and tracing analysis)  - when the user runs user-mode sampling and tracing analysis in command line and requests to change sample interval from 10s (default value) to 20s, with "-collect-with runss", the user should specify collectSamplesMode explicitly (with either "stack" or "nostack"). Here is an example:

[shell]
$ amplxe-cl -collect-with runss -knob interval=20 --knob collectSamplesMode=stack -- ./primes.icc
Determining primes from 1 - 100000
Found 9592 primes
Using result path `/home/peter/problem_report/r012runss' Executing actions 75 %
Generating a report
Summary -------
Elapsed Time: 0.992 CPU Time: 2.290 Executing actions 100 % done
$ amplxe-cl -report hotspots -group-by function
Using result path `/home/peter/problem_report/r012runss' Executing actions 75 %
Generating a report
Function Module CPU Time
---------- ---------- --------
findPrimes primes.icc 2.290 Executing actions 100 % done [/shell]

 
If collectSamplesMode is not specified explicitly (with either "stack" or "nostack"), users may see the error message below. The root-cause is - with "-collect-with runss", the user should specify collectSamplesMode explicitly (with "stack" or "nostack").

[shell]$ amplxe-cl -collect-with runss-knob interval=20 -- ./primes.icc Determining primes from 1 - 100000 Found 9592 primes Using result path `/home/peter/problem_report/r011runss' Executing actions 75 % Generating a report Summary ------- Elapsed Time: 0.978 Executing actions 100 % done $ amplxe-cl -report hotspots -group-by function Using result path `/home/peter/problem_report/r011runss' Executing actions 75 % Generating a report Result directory does not contain CPU samples. Executing actions 100 % done Error: Error 0x40000024 (Reporter error)[/shell]
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.