Bootchart2
Appearance
Use bootchart2 to profile system boot or a running system.
Configure bootchart2
- Add the bootchart2 package to your device.
- Add the following kernel command line parameters:
initcall_debug printk.time=y quiet
Profile system boot
- add the following kernel command line parameter:
PMOS_BOOTCHART2
. - (optional) modify EXIT_PROC in /etc/bootchartd.conf to define when the collector is to stop.
- Boot the system.
- mkinitfs will start
/sbin/bootchartd
. /sbin/bootchartd
will run/sbin/init
.- Approximately 20 seconds after sshd starts (if using the default value of EXIT_PROC), the collector will exit.
/usr/bin/pybootchartgui
will create a visualization in/var/log/bootchart.png
.
- mkinitfs will start
Profile a running system
- Use the command
/sbin/bootchartd start
(as root) to start profiling - Use the command
/sbin/bootchartd stop
(as root) to stop profiling - When the collector exits,
/usr/bin/pybootchartgui
will create a visualization in/var/log/bootchart.png
.
Example
This example demonstrates how to use bootchart2 with device-qemu-amd64.
- Run
pmbootstrap init
. At theExtra packages
prompt, enterbootchart2