Piranha is a project mainly written in OCAML and C, it's free.
A simple profiler for Android
This is a simple, incomplete Android profiler. It's especially good for testing Fennec 1, but it can be used for any Android app.
You'll need the following to build from source.
adb
utility.libcurl
. You probably already have this installed, if you're on Mac or
Linux.To build:
$ cd android/core
$ cp Makefile.config.sample Makefile.config
Makefile.config
and set the paths in it appropriately.$ cd ../..
$ make -C android/core
$ make -C android/driver
$ make -C symbolicate
Alternately, you can skip steps 1-5 with the prebuilt binary on GitHub. Click on the "Downloads" button in the top right corner of the project page and download the prebuilt binary 3. Be warned that the prebuilt binary might be out of date; if you have trouble, try building from source.
Profile your app:
$ ./android/driver/piranha-driver android/core/piranha org.mozilla.fennec
(replace org.mozilla.fennec
with your app ID as applicable).Add symbols to your profile:
$ ./symbolicate/piranha-symbolicate profile.ebml profile-syms.ebml
.Use the web app to examine the results:
analyzer/index.html
in your web browser (only tested in Firefox 4 at
the moment).profile-syms.ebml
file.