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
- The Android NDK, release 5b or later.
- Objective Caml 2.
libcurl. You probably already have this installed, if you're on Mac or Linux.
$ cd android/core
$ cp Makefile.config.sample Makefile.config
Makefile.configand 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(replace
org.mozilla.fennecwith 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:
analyzer/index.htmlin your web browser (only tested in Firefox 4 at the moment).
- Click the file chooser, and open your
- The Chromium project for the tab strip design.