Add sampling support in the metrics reporter am: 029a811dcb

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

Change-Id: If9ce5a1b59d3f70cd825783d336fbed732fba6aa