Ask HN: Tools for Android NDK development? Looking at porting a desktop C++ and OpenGL app to Android. Wondering what tools do you use for debugging and profiling apps on Android? Am interested in profiling both CPU code, as well as OpenGL shaders. |
Ask HN: Tools for Android NDK development? Looking at porting a desktop C++ and OpenGL app to Android. Wondering what tools do you use for debugging and profiling apps on Android? Am interested in profiling both CPU code, as well as OpenGL shaders. |
I don't know about shader profiling. GDB is apparently supported for debugging, haven't used it: http://www.kandroid.org/online-pdk/guide/debugging_gdb.html
EDIT: By the way, depending on the accuracy you require, you might want to take a look at this poor man's profiler that Mike Dunlavey has been advocating: http://stackoverflow.com/questions/375913/what-can-i-use-to-... It doesn't require compiling the operating system, you can just send a kill signal to your process multiple times and examine the stack traces from the logs. It may or may not be enough for your needs.
I would look into this before worrying about debugging and profiling. If it were possible to easily port OpenGL C++ apps to Android, I (and others) would have ported every popular open source OpenGL C++ game to Android a long time ago.
Garen Torikian and Sergii Pylypenko both have attempted to port C++/OpenGL games to Android. There results are here and might help you:
http://github.com/pelya/commandergenius/tree/sdl_android/pro...
http://gjtorikian.github.com/Neverball-ME/
I am almost always on Freenode IRC channel #android-dev as Ologn, feel free to send me a message as I'm interested in this topic. You also might luck out and run into someone with some NDK/JNI experience on the IRC channel, depending on the time of day etc.