Profiling android-ndk plain C/C++ executable

有些话、适合烂在心里 提交于 2019-12-01 18:54:47

I was faced with the same question recently. After looking into several alternatives I decided the best option (the one I made to work, at any rate) was to build Valgrind for Android.

This page describes how to build Valgrind for Android. See also my GitHub project for a slightly different build procedure, usage notes and prebuilt Android ARMv7 binaries.

Android NDK profiler work by GCC compiler trick so should work independent of JNI

This link has the details http://code.google.com/p/android-ndk-profiler/wiki/HowItWorks

As long as you can insert the startup and cleanup code into your C/C++ code it should work

You can find all the information you will need here

http://code.google.com/p/android-ndk-profiler/

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