Added implementation for profiling build option.