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.
- The Android SDK, version 8 (version 5 will not work) with the
adb
utility. - The Android NDK, release 5b or later.
- Objective Caml 2.
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
- Edit
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:
- Start your app.
$ ./android/driver/piranha-driver android/core/piranha org.mozilla.fennec
(replaceorg.mozilla.fennec
with your app ID as applicable).- Perform the action you'd like to profile on your mobile device.
- Press Return.
Add symbols to your profile:
$ ./symbolicate/piranha-symbolicate profile.ebml profile-syms.ebml
.
Use the web app to examine the results:
- Open
analyzer/index.html
in your web browser (only tested in Firefox 4 at the moment). - Click the file chooser, and open your
profile-syms.ebml
file.
- The Chromium project for the tab strip design.