[metrics] Report CompilationReason and CompilerFilter
Since we do not know the real primary OAT file when the runtime starts
up, we have to wait until NotifyStartupCompleted to be sure we have
the right one. To accomodate this, we delay starting the metrics
session until the first report and then send updated session
information in NotifyStartupCompleted.
Note that we could delay the whole metrics reporting initialization to
NotifyStartupCompleted, but this doesn't get called in all
circumstances, which would mean metrics reporting is disabled in cases
where we want it.
Bug: 178239096
Test: manual
Change-Id: Ide59be88bc934526e0c172fb745dc2f5cd797749
6 files changed