| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Whenever you search in PBworks or on the Web, Dokkio Sidebar (from the makers of PBworks) will run the same search in your Drive, Dropbox, OneDrive, Gmail, Slack, and browsed web pages. Now you can find what you're looking for wherever it lives. Try Dokkio Sidebar for free.

View
 

BootChart

Page history last edited by Paul G. Taylor 14 years, 2 months ago

 

Dean wrote : --

 

Post your bootchart!

by meandean on Wed Mar 18, 2009 1:58 am

To run it at boot time I would think you have to add it to the kernel line of you menu.lst file.

As far as using it to profile a running system(on debian):

1 - make a folder

mkdir tmp

2 - copy the configuration file to that folder

cp /etc/bootchartd.conf ~/tmp

3 - edit the configuration file and change the BOOTLOG_DEST to that folder

BOOTLOG_DEST=~/tmp/bootchart.tgz

4 - change to that directory

cd tmp/

5 - profile the system - for 5 seconds in this example

/sbin/bootchartd start; sleep 5; /sbin/bootchartd stop

6 - create your bootchart

bootchart bootchart.tgz -f png

7 - look in the tmp folder in your home directory for the boochart.png image

As far as using it to profile a application(on debian):

1 - make a folder

mkdir tmp

2 - copy the configuration file to that folder

cp /etc/bootchartd.conf ~/tmp

3 - edit the configuration file and change the BOOTLOG_DEST to that folder

BOOTLOG_DEST=~/tmp/bootchart.tgz

4 - change to that directory

cd tmp/

5 - profile the application - konqueror in this example

/sbin/bootchartd start konqueror

6 - create your bootchart

bootchart bootchart.tgz -f png

7 - look in the tmp folder in your home directory for the boochart.png image

Thats all folks...

 
Now, putting that all together into a script seems to be the way to go. So here goes ...
 
#!bootchart-script
## This script will run bootchart to profile your running system.
## Edit it before running to your preferences.
 
# Create a temporary directory in your home directory for this exercise.
# You may delete the directory after you have done with it.
mkdir ~/tmp     
# Change to the working directory.
cd ~/tmp/ 

 

# Copy the configurartion file into the working directory.
 
cp /etc/bootchartd.conf ~/tmp
 
## Edit the configuration file and change the BOOTLOG_DEST to that folder

BOOTLOG_DEST=~/tmp/bootchart.tgz

# I don't know how to do that within this script!
 
## Profile the system - for 5 seconds in this example

/sbin/bootchartd start; sleep 5; /sbin/bootchartd stop

 
## Create your bootchart

bootchart bootchart.tgz -f png

## Look in the tmp folder in your home directory for the boochart.png image

 
## Exit from this script
exit
 
Save the above as a test file, giving it a name with a suffix '.sh' .
 
     File, save as  "bootchart-script.sh"
 
Copy it to the /bin directory .
 
     sudo cp   /home/paul/Documents/MyScripts/bootchart-script.sh /bin/bootchart-script.sh
 
Make it executable.
 
     sudo chmod +rx /bin/bootchart-script.sh
 
Now you can run it with just the command : --
 
     bootchart-script.sh
 
 
 

 

Comments (0)

You don't have permission to comment on this page.