Skip to content

Commit

Permalink
dung out, and do more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Meeks committed Jan 20, 2010
1 parent 8ec7f85 commit b1c5f4c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bootchartd
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
# $ /sbin/bootchartd start; sleep 30; /sbin/bootchartd stop
#

# FIXME:
# - test with our initrd first ... [mkinitrd etc.]
# FIXME:
# - fix for profiling a running system ... [ get timings right ]
# - fixme - we need a 'from init' thingit ...
Expand Down Expand Up @@ -115,7 +113,6 @@ start()

# Otherwise start in a chroot jail
elif [ -n "$IN_INIT" ]; then
mkdir $JAIL/log
chroot $JAIL /lib/bootchart/bootchart-collector -p proc $SAMPLE_HZ # 2>/dev/null &

# Otherwise, manually launched to profile something
Expand Down Expand Up @@ -214,7 +211,9 @@ stop()
rmdir proc

tar -zcf "$BOOTLOG_DEST" header dmesg $pacct *.log
# rm -Rf $JAIL
rm -f header dmesg $pacct *.log
cd ..
rmdir $JAIL

# Render the chart if configured (and the renderer is installed)
if [ "$AUTO_RENDER" = "yes" -a -x /usr/bin/pybootchartgui ]; then
Expand Down

0 comments on commit b1c5f4c

Please sign in to comment.