Jump to: navigation, search


364 bytes added, 14 January
no edit summary
== Profile a running system ==
# Use the command <code>/sbin/bootchartd start</code> (as root) to start profiling
# Execute the commands or perform the activity that you want to profile.
# Use the command <code>/sbin/bootchartd stop</code> (as root) to stop profiling
#* <code>/usr/bin/pybootchartgui</code> will create a visualization in <code>/var/log/bootchart.png</code>.
# Start qemu. Use the kernel command line parameters from the deviceinfo file, and add the bootchart2 parameters. For example:
#:<code>pmbootstrap qemu --image-size=2G --host-qemu --display=gtk --cmdline '<b>PMOS_BOOTCHART2 initcall_debug printk.time=y quiet</b> console=tty1 console=ttyS0 PMOS_NO_OUTPUT_REDIRECT PMOS_FORCE_PARTITION_RESIZE'</code>
# Wait until bootchart2 has written the image to <code>/var/log/bootchart.png</code>.
# Copy the file to your host system (<code>scp -P 2222 <qemu username>@localhost:/var/log/bootchart.png .</code>).

Navigation menu