Using genprof. Suitable for profiling small applications.
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:
Create profiles for the individual programs that make up your application (autodep).
Put relevant profiles into learning or complain mode.
Exercise your application.
Analyze the log (logprof).
Repeat Steps 3-4.
Edit the profiles.
Return to enforce mode.
Reload all profiles (rcapparmor restart).