Profiling android-ndk plain C/C++ executable

前端 未结 2 1093
失恋的感觉
失恋的感觉 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

    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.

提交回复
热议问题