Notes :
gprof2dot (https://github.com/jrfonseca/gprof2dot) is a python application. I downloaded the zip and extracted to the folders :
Code: Select all
Windows : %HOMEPATH%\python\
Linux : ~/python/gprof2dot
XCORE-200-EXPLORER.xn can be found in the xTIMEcomposer targets folder.
When you run the xsim command, hit <ctrl>-C after a few seconds to halt the simulation.
The attached example can be analyzed using the following commands :
Windows
Code: Select all
xcc SimpleTimerBiDi.xc XCORE-200-EXPLORER.xn -o SimpleTimerBiDi.xe
xsim --gprof SimpleTimerBiDi.xe
xobjdump --split SimpleTimerBiDi.xe
xgprof image_n0c0_2.elf tile[0]_core0.gprof | python %HOMEPATH%\python\gprof2dot\gprof2dot.py > SimpleTimerBiDi.dot
dot -Tpng -oSimpleTimerBiDi.png SimpleTimerBiDi.dot
Code: Select all
xcc SimpleTimerBiDi.xc XCORE-200-EXPLORER.xn -o SimpleTimerBiDi.xe
xsim --gprof SimpleTimerBiDi.xe
xobjdump --split SimpleTimerBiDi.xe
xgprof image_n0c0_2.elf tile\[0\]_core0.gprof | ~/python/gprof2dot/gprof2dot.py > SimpleTimerBiDi.dot
dot -Tpng -oSimpleTimerBiDi.png SimpleTimerBiDi.dot