Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
4995 Discussions

Asking for how using the intel vtune amplifier tool

amina-jarraya
Beginner
685 Views
Hello,

I'm using the intel Vtune amplifier xe 2011
When i execute the command line amplxe-cl -g -collect hotspots /bin/ls, i have the following output :

amina@amina-laptop:~/projet/cilkplus-install/examples/princeFGTest$ amplxe-cl -collect hotspots /bin/lsbase.dat data.o Global.cpp log1.txt parameters.h prince2.o seq.txt
callgrind.out.3448 fg.nbd.sum.txt Global.h log.txt parameters.o profiling.txt sortie.cov
callgrind.out.3462 FPtree.cpp Global.o map.stat.cov PatternSet.cpp r000hs sortie.nbd
chess.dat FPtree.h gmon.out map.stat.nbd PatternSet.h Rsultats sorties
cilkview.out FPtree.o holderStorage.cpp map.stat.txt PatternSet.o Rsultat.txt sortie.txt
compile.sh fsout.cpp holderStorage.h mushroom.dat pin.log ScanDBMine.cpp variables.cpp
data.cpp fsout.h holderStorage.o parallel.txt prince2 ScanDBMine.h
data.h fsout.o inline_routine.h parameters.cpp prince2.cpp ScanDBMine.o
Using result path `/home/amina/projet/cilkplus-install/examples/princeFGTest/r000hs'
Executing actions 75 % Generating a report
Summary
-------

Elapsed Time: 0.023
CPU Time: 0
Executing actions 100 % done
amina@amina-laptop:~/projet/cilkplus-install/examples/princeFGTest$


I don't know even it works fine.

If yes, how can i see the %time execution, the state for every core ?
the %time execution for every procedure on the program ?
is there a command line that generate an interface to show all information about execution time for procedures, for each core, etc as same as the valgrind tool ( command kcachegrind callgrind.out.xxx) on linux ?

Thank you in advance,
0 Kudos
4 Replies
Peter_W_Intel
Employee
685 Views
You can use below to display report:
amplxe-cl -report summary -r r000hs
amplxe-cl -report hotspots -r r000hs

Note that "/bin/ls" process ran shortly, there is no hot function (which belongs to ls module,orother libraries - for example glibc) to bedetected. Please run target application/functions > 10ms, then the tool can detect hot functions.

Regards, Peter

0 Kudos
amina-jarraya
Beginner
685 Views
i run the first command after executing the command "amplxe-cl -collect hotspots /bin/ls" :

amina@amina-laptop:~/projet/cilkplus-install/examples/princeFGTest$ amplxe-cl -collect hotspots /bin/ls
base.dat data.o Global.cpp log1.txt parameters.h prince2.o ScanDBMine.h
callgrind.out.3448 fg.nbd.sum.txt Global.h log.txt parameters.o profiling.txt ScanDBMine.o
callgrind.out.3462 FPtree.cpp Global.o map.stat.cov PatternSet.cpp r000hs seq.txt
chess.dat FPtree.h gmon.out map.stat.nbd PatternSet.h r001hs sortie.cov
cilkview.out FPtree.o holderStorage.cpp map.stat.txt PatternSet.o r002hs sortie.nbd
compile.sh fsout.cpp holderStorage.h mushroom.dat pin.log Rsultats sorties
data.cpp fsout.h holderStorage.o parallel.txt prince2 Rsultat.txt sortie.txt
data.h fsout.o inline_routine.h parameters.cpp prince2.cpp ScanDBMine.cpp variables.cpp
Using result path `/home/amina/projet/cilkplus-install/examples/princeFGTest/r002hs'
Executing actions 75 % Generating a report
Summary
-------

Elapsed Time: 0.0009214
CPU Time: 0
Executing actions 100 % done
amina@amina-laptop:~/projet/cilkplus-install/examples/princeFGTest$ amplxe-cl -report summary -r r002hs
Using result path `/home/amina/projet/cilkplus-install/examples/princeFGTest/r002hs'
Executing actions 75 % Generating a report
Summary
-------

Elapsed Time: 0.0009214
CPU Time: 0
Executing actions 100 % done
amina@amina-laptop:~/projet/cilkplus-install/examples/princeFGTest$ amplxe-cl -report hotspots -r r002hs
Using result path `/home/amina/projet/cilkplus-install/examples/princeFGTest/r002hs'
Executing actions 75 % Generating a report
Function Module CPU Time
-------- ------ --------

Executing actions 100 % done
amina@amina-laptop:~/projet/cilkplus-install/examples/princeFGTest$

=> i don't have any result!!

is there a problem ?

my program must be run more than 10 ms to be detected ?

if yes, is there another tool ?

Thank you,
0 Kudos
amina-jarraya
Beginner
685 Views
Even i run the command line amplxe-gui, i don't have any analysis for my result file.
you can see the attachement picture.
0 Kudos
Peter_W_Intel
Employee
685 Views
What I said is that hot function should run more than 10ms, please try this way:

#cd /
#amplxe-cl -collect hotspots -duration 10 /bin/ls -l -R
# amplxe-cl -report hotspots
Using result path `/r000hs'
Executing actions 75 % Generating a report
Function Module CPU Time
---------------------- ------ --------
[ls] ls 1.300
[Import thunk strcoll] ls 0.010
Executing actions 100 % done

Note there is no symbol info in "ls", use "[ls]" instead of hot function name.

0 Kudos
Reply