[metrics] Move metrics code to runtime
The background reporting thread is going to need tighter ties to the
Runtime object, so it makes sense to bring the rest of the metrics code
under runtime. Since these are mostly runtime metrics, this is a more
logical place for them anyway.
Test: m test-art-host-gtest-art_runtime_tests
Bug: 170149255
Change-Id: Ib425041c41a5283237af8dd9978582e605a89a31
diff --git a/runtime/Android.bp b/runtime/Android.bp
index 4b8022a..3b04177 100644
--- a/runtime/Android.bp
+++ b/runtime/Android.bp
@@ -155,6 +155,7 @@
"linear_alloc.cc",
"managed_stack.cc",
"method_handles.cc",
+ "metrics/metrics.cc",
"mirror/array.cc",
"mirror/class.cc",
"mirror/class_ext.cc",
@@ -693,6 +694,7 @@
"jni/java_vm_ext_test.cc",
"jni/jni_internal_test.cc",
"method_handles_test.cc",
+ "metrics/metrics_test.cc",
"mirror/dex_cache_test.cc",
"mirror/method_type_test.cc",
"mirror/object_test.cc",