Confirmed users
507
edits
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
Java code can be effectively profiled with traceview, included in the Android SDK. See http://developer.android.com/guide/developing/tools/traceview.html | Java code can be effectively profiled with traceview, included in the Android SDK. See http://developer.android.com/guide/developing/tools/traceview.html | ||
* The Fennec build needs to be "[http://developer.android.com/guide/topics/manifest/application-element.html#debug debuggable]". Nightlies are not, but local developer builds are. | |||
* For profiling pageload, you can generally use [http://developer.android.com/tools/debugging/debugging-tracing.html Monitor/DDMS]. Just press the "start method tracing" button, load a page, wait, press the "stop method tracing" button. | |||
* For profiling startup time, you really need to add Debug.startMethodTracing(...) and Debug.stopMethodTracing(). [http://people.mozilla.org/~mfinkle/fennec/profiles/startup-tracing.patch Sample patch] | |||
* Or use the "am start" -P option, e.g. | |||
adb shell am start -n org.mozilla.fennec_$USER/.App -S -P /data/local/tmp/fennec.trace | |||
# wait for Fennec launch | |||
adb pull /data/local/tmp/fennec.trace | |||
# in Monitor, File > Open File > fennec.trace | |||
= Built-in Profiler = | = Built-in Profiler = | ||
See https://developer.mozilla.org/en/Performance/Profiling_with_the_Built-in_Profiler# | See https://developer.mozilla.org/en/Performance/Profiling_with_the_Built-in_Profiler#Profiling_Firefox_mobile | ||
= oprofile = | = oprofile = |