Sun Studio 12: Performance Analyzer

ProcedureProfiling Under Load

If you have a single command, either a program or a script, that you wish to use as a load:

  1. Collect the experiment by typing:


    % er_kernel -p on load
    
  2. Analyze the experiment by typing:


    % analyzer ktest.1.er
    

    The er_kernel utility forks a child process and pauses for a quiet period, and then the child process runs the specified load. When the load terminates, the er_kernel utility pauses again for a quiet period and then exits. The experiment shows the behavior of the Solaris OS during the running of the load, and during the quiet periods before and after. You can specify the duration of the quiet period in seconds with the -q argument to the er_kernel command.