Merge "Scope the compilation and Create the ProfilingInfo in the loop."