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:
Collect both a kernel profile and a user profile by typing both the er_kernel command and the collect command:
% er_kernel collect load
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.
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.