12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

OProfile 4573. Set up which processor event to sample and whether to separate kernel and librarysamples:opcontrol –event=:::: \--separate=4. Start the OProfile daemon, which starts the sampling process:opcontrol --start225. Write the samples to disk:opcontrol --dump6. Generate a report about the samples using opreport, opcontrol, and opannotate.7. After collecting all your samples, stop the daemon and the sampling process:opcontrol --stopUsing OProfile GraphicallyIf the oprofile-gui RPM package is installed, you can also use a graphical program to set upOProfile, start OProfile, flush the data to disk, and stop OProfile. You will still need to useopreport, opcontrol, and opannotate to generate reports after the data is flushed to disk.To start the graphical interface, execute the oprof_start command as the root user. Onthe Setup tab shown in Figure 22.1, click on one or more processor events to monitor.FIGURE 22.1OProfile Graphical Setup

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!