Add period reporting to the metrics infra am: ec11cf1e4a

Original change: https://android-review.googlesource.com/c/platform/art/+/1740165

Change-Id: Ice9ff6d91fe786520a14d324e9608c9d00f710c0