Sun Studio 12: Performance Analyzer

ProcedureProfiling the Kernel and Load Together

If you have a single program that you wish to use as a load, and you are interested in seeing its profile in conjunction with the kernel profile:

  1. Collect both a kernel profile and a user profile by typing both the er_kernel command and the collect command:


    % er_kernel collect load
    
  2. Analyze the two profiles together by typing:


    % analyzer ktest.1.er test.1.er
    

    The data displayed by the Analyzer shows both the kernel profile from ktest.1.er and the user profile from test.1.er. The timeline allows you to see correlations between the two experiments.


    Note –

    To use a script as the load, and profile the various parts of it, prepend the collect, command, with the appropriate arguments, to the various commands within the script.