Add support to report ART metrics to statsd.

It will report dex2oat related metrics (total time, dex bytes and result
code) after each run of dex2oat.

This is a cherry pick from AOSP aog/1619941 with conflict fixing.
Internal and AOSP have different APIs.

Bug: 177694884
Test: atest ArtStatsLogUtilsTest
Change-Id: Ic167e250a74e29dee0c8dc628d1cc731d778fa26
(cherry picked from commit e006983daf210e9b2b7448c326da2b76a5e45cd6)
4 files changed