Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Meeks committed Jan 20, 2010
1 parent b1c5f4c commit e5d8cbe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
+ Ensure that we merge up a sub-process' CPU usage into the
parent process when we hide very short running processes.

+ fix for profiling a running system ... [ get the origin right ! ]

+ the renderer - should not show the kernel etc.
- if it is > 5 mins from start etc.

+ re-add JAIL deletion into the bootchartd script ...

** Features:

Woah, there is some -serious- rounding error on the sample
Expand Down
19 changes: 8 additions & 11 deletions bootchartd
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
#!/bin/bash
#
# FIXME: re-write this header ...
#
# Bootchart logger script
# Ziga Mahkovec <ziga.mahkovec@klika.si>
# Michael Meeks <michael.meeks@novell.com>
#
# This script is used for data collection for the bootchart
# boot performance visualization tool (http://www.bootchart.org).
# This script is used for data collection for the bootchart2
# boot performance visualization tool.
#
# To profile the boot process, bootchartd should be called instead of
# /sbin/init. Modify the kernel command line to include:
# init=/sbin/bootchartd
#
# init=/sbin/bootchartd initcall_debug printk.time=y quiet
#
# bootchartd will then start itself in background and exec /sbin/init
# (or an alternative init process if specified using bootchart_init=)
Expand All @@ -19,10 +19,6 @@
# $ /sbin/bootchartd start; sleep 30; /sbin/bootchartd stop
#

# FIXME:
# - fix for profiling a running system ... [ get timings right ]
# - fixme - we need a 'from init' thingit ...

# Whack everything in a handy tmpfs: /dev ...
JAIL_INITRD="/dev/.bootchart"
JAIL_MAIN="/tmp/.bootchart"
Expand Down Expand Up @@ -206,13 +202,14 @@ stop()
dmesg > dmesg

# cleanup
rm -f klog
rm -f kmsg
umount proc
rmdir proc

tar -zcf "$BOOTLOG_DEST" header dmesg $pacct *.log
rm -f header dmesg $pacct *.log
cd ..

cd /
rmdir $JAIL

# Render the chart if configured (and the renderer is installed)
Expand Down

0 comments on commit e5d8cbe

Please sign in to comment.