Cleanups around the creation of ProfilingInfo.

Create a ProfilingInfo only when we are going to compile baseline.

Test: test.py
Bug: 112676029

Change-Id: I3fa0ef0f29fc955774d4960fef8274b99a9e3432
8 files changed