Bootchart2: Difference between revisions
Appearance
Use bootchart2 to profile system boot or a running system. |
No edit summary |
||
Line 15: | Line 15: | ||
# Use the command <code>/sbin/bootchartd stop</code> (as root) to stop profiling | # Use the command <code>/sbin/bootchartd stop</code> (as root) to stop profiling | ||
# When the collector exits, <code>/usr/bin/pybootchartgui</code> will create a visualization in <code>/var/log/bootchart.png</code>. | # When the collector exits, <code>/usr/bin/pybootchartgui</code> will create a visualization in <code>/var/log/bootchart.png</code>. | ||
== Example == | |||
This example demonstrates how to use bootchart2 with device-qemu-amd64. | |||
# Run <code>pmbootstrap init</code>. At the <code>Extra packages</code> prompt, enter <code>bootchart2</code> |
Revision as of 02:44, 15 January 2020
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