dex2oat: Faster retrieval of profile data.

Avoid the slow `ProfileCompilationInfo::GetMethodHotness()`.
Cache profile index to avoid repeating the `DexFileData`
search and use new specialized functions that retrieve only
the required information instead of full `MethodHotness`.

Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 181943478
Change-Id: Iaf8486a5e5b12f114c8abb9cfdedf6fc4ed62e20
5 files changed