The purpose of using "-target-pid" is to attach a running process, but I assume that you want to launch your application by the tool.
Since myapplication is not child process of taskset, you can use command like as - (use lightweight hotspots analysis)
amplxe-cl -collectlightweight-hotspots -result-dir r0001lh -- taskset -c 0-7 myapplication
Then view result like as -
amplxe-cl -report pmu-events -r r0001lh -filter module=myapplication -group-by function
Otherwise, manually run "taskset -c 0-7 myapplication", thenrun hotspots to attach running app-
amplxe-cl -collect hotspots -result-dir r0001hs -target-pid 1234
amplxe-cl -report hotspots -result-dir r001hs -group-by function -filter module=myapplication
Hope it helps.
Hope it helps
amplxe-cl -collect hotspots taskset -c 0-4 tests/few_thread
Using result path `r005hs'
Executing actions 74 % Generating a report
Elapsed Time: 7.414
CPU Time: 12.368
Executing actions 99 % done
Which Linux distribution are you using?
Can you give more details about how it fails? Does the application run? Is a result directory produced (should be something like 'r000hs')? Does it work without taskset?