Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有什么比较好用的android ndk c/c++性能分析工具吗? #282

Open
xylcbd opened this issue Oct 28, 2015 · 1 comment
Open

有什么比较好用的android ndk c/c++性能分析工具吗? #282

xylcbd opened this issue Oct 28, 2015 · 1 comment

Comments

@xylcbd
Copy link

xylcbd commented Oct 28, 2015

我找到了几种:
1,Intel vtune ,https://software.intel.com/en-us/intel-system-studio , 一直crash,从来没能用起来;
2,android-ndk-profiler, https://github.com/richq/android-ndk-profiler , 怀疑非常不准确;
3,android_ndk_perf,https://google.github.io/fplutil/android_ndk_perf.html ,还没有用过,据说只能在部分手机上使用(https://github.com/google/fplutil/blob/master/bin/android_ndk_perf.py#L58)
4,gproftools,https://github.com/gperftools/gperftools ,据说精度挺高的,但是我还没找到移植到android的库;
5,valgrind android移植版本,https://github.com/xperroni/Valdroid ,报错:“disInstr(thumb): unhandled instruction: 0xEEFA 0x0BEF” ;
6,Oprofile,http://oprofile.sourceforge.net/news/ ,还需要编译android内核,及其繁琐;
7,gperftools,https://github.com/gperftools/gperftools ,仅支持x86的linux;
8,arm streamline ,http://ds.arm.com/zh-cn/ds-5/optimize/ ,报错: “Streamline can't automatically setup gator as this kernel version is not supported. Please upgrade the kernel on your device.”,需要自己编译android内核,很繁琐。
...

@colordancer
Copy link

streamline和simpleperf目前都能用,
gperftools据说不错,
还有一个system tap,据说也不错,还没用
原理应该都是sampling,或者如果设备和内核支持的话,通过event

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants