Code Profiler for ARM

时光总嘲笑我的痴心妄想 提交于 2019-12-04 04:28:18

问题


I want to profile my code on arm 9, Is there any profiler which can give me function call timings and total cycles taken by each function? I would prefer any free profiler. I loved to work with kcachegrind in linux.


回答1:


I don't know any free ARM profilers.

You can try ARM RVDS 4.0 Pro. It has a good profiler. And you can use emulator instead of real hardware with it. It simplifies some things, but you'll not receive information about cache-misses/memory-latency, and results may differ from tests on real hardware.

The price of RVDS is high enough. You can try trial for 30 or 45 days, maybe this will be enough to profile all you want.




回答2:


gprof would be the obvious choice if you are using gcc and I suppose valgrind should work too. Caveat: I am not familiar with kcachegrind

I see now that kcachegrind IS using valgrind framework, so I would imagine you would be able to run it from your development machine..




回答3:


If you've got some way to interrupt the code, this is free and surprisingly effective.



来源:https://stackoverflow.com/questions/1340056/code-profiler-for-arm

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!