Extend profile analysis with proper return codes

This allows us to fine tune the optimization strategy when
profiles are empty.

Test: atest installd_dexopt_test
Bug: 188655918
Change-Id: Iaf782eedd92dfddd522feaecb446c85f3ae1c51e
7 files changed