Option to profile only master process

You can find further information on these topics here and here in the documentation.