Reland "Cleanups around the creation of ProfilingInfo."

This reverts commit a996425197a7946eae02d218f70610a853f2fe9a.

Bug: 112676029

Reason for revert: Fixed JitCodeCache::InvalidateAllCompiledCode and
                   ForceJitCompiled.

Change-Id: Ia87fda1bb40c504d9294e447f899ac1797ae98fc
8 files changed