samedi 28 février 2015

Android NDK profiler for native executable produces no data

I am using the Android NDK to build a native C/C++ binary via include $(BUILD_EXECUTABLE). I have added the android-ndk-profiler module to my Android.mk according to their instructions and added calls for monstartup and moncleanup.


Running the binary on a rooted device produces gmon.out, and everything appears to be working correctly. But running $ANDROID_NDK/toolchains/.../arm-linux-androideabi-gprof shows the headers and descriptions, but no actual data.


I know the profiler intended to be used for native shared libraries and not executables, but is it possible to make this work?


Aucun commentaire:

Enregistrer un commentaire