add profiling fields to profiling test settings
use profiling symbols when prof flag is enabled and a small refactoring