4. Methods of Profiling

Stand-Alone Profiling

Using genprof. Suitable for profiling small applications.

Systemic Profiling

Suitable for profiling large numbers of programs all at once and for profiling applications that may run “forever.

To apply systemic profiling, proceed as follows:

  1. Create profiles for the individual programs that make up your application (autodep).

  2. Put relevant profiles into learning or complain mode.

  3. Exercise your application.

  4. Analyze the log (logprof).

  5. Repeat Steps 3-4.

  6. Edit the profiles.

  7. Return to enforce mode.

  8. Reload all profiles (rcapparmor restart).