Profiling android-ndk plain C/C++ executable

前端 未结 2 1066
失恋的感觉
失恋的感觉 2021-01-19 17:44

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 sugg

2条回答
  •  执笔经年
    2021-01-19 18:01

    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/

提交回复
热议问题