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

    The data displayed by the Analyzer shows both the kernel profile from and the user profile from 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.