What is the best way to profile plain C/C++ android executables on a rooted android device? android-ndk-profiler seems to support only ndk libraries linked to Java. Any suggestions? Thanks
Asked
Active
Viewed 3,230 times
4
-
Are you building these executables yourself? Which toolchain do you use then? – auselen May 23 '13 at 11:56
2 Answers
2
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.

xperroni
- 2,606
- 1
- 23
- 29
2
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

gheese
- 1,170
- 1
- 11
- 17