Profiling the android-ndk plain C / C ++ executable

What is the best way to profile simple C / C ++ android executables on an Android root device? Android-ndk-profiler seems to only support Java-related ndk libraries. Any suggestions? Thanks

+4
source share
2 answers

I have been facing the same issue recently. After exploring several alternatives, I decided that the best option (the one I made to work, anyway) 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 ready-made Android ARMv7 binaries.

+2
source

The Android NDK profiler works with the GCC compiler, so it should work independently by JNI

This link contains http://code.google.com/p/android-ndk-profiler/wiki/HowItWorks information

As long as you can insert the start and clear code into your C / C ++ code, it should work

You can find all the necessary information here.

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

+2
source

Source: https://habr.com/ru/post/1482277/


All Articles