Confirmed users
125
edits
(→Misc.) |
(→Misc.) |
||
Line 26: | Line 26: | ||
[[FirefoxOS/Performance/Boot_Profiling]] | [[FirefoxOS/Performance/Boot_Profiling]] | ||
== | ==Bootchart== | ||
Some example preliminary data collected via [http://www.bootchart.org/ bootchart] [http://people.mozilla.org/~jbailey/fxos_bootchart/ here]. | |||
To enable the collection of bootchart data in FireFox OS one must build '''init''' with the following environment variable set. | |||
<pre> | |||
INIT_BOOTCHART=true | |||
</pre> | |||
Once init has been replaced on the device [[FirefoxOS/Performance/Modifying boot.img|See Process Here]]. To enable logging one simply creates a file '''|'''/data/bootchart-start'''|''' containing an integer representing the number of seconds for which bootchart should collect data. | |||
Bootchart data is pulled from the device with the system/core/grab-bootchart.sh script, and presented in the form of a bootchart.tgz file. With the data collected one can then generate graphs by invoking: | |||
<pre> | |||
java -jar bootchart.jar -f eps bootchart.tgz | |||
</pre> | |||
Without the |-f eps| parameters, the default is to generate PNGs, SVG is also supported. | |||
==References== | ==References== | ||
[https://developer.mozilla.org/en-US/Firefox_OS/Platform/Architecture#Firefox_OS_bootup_procedure Firefox OS Bootup Procedure] | [https://developer.mozilla.org/en-US/Firefox_OS/Platform/Architecture#Firefox_OS_bootup_procedure Firefox OS Bootup Procedure] |