summaryrefslogtreecommitdiff
path: root/runtime/common_runtime_test.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2025-02-12 14:30:16 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2025-02-18 07:29:58 -0800
commit17c7ed2de734cf892b005b1d15b3db9855506f14 (patch)
treeec7cd925e8648e601166e835a061d7b290940e00 /runtime/common_runtime_test.cc
parentcb3c3b2819f326d54a6bd960a9a82c5290aa69b0 (diff)
Refactor `Instrumentation` out of `Runtime`.
Avoid indirectly `#include`-ing `instrumentation.h` in every compilation unit that needs the `runtime.h`. This reduces incremental compilation times when touching certain files. The additional load when accessing `Instrumentation` via the `Runtime` has negligible performance impact. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: Ibaf96696693b105e843c7c2cbf4e7604b126808e
Diffstat (limited to 'runtime/common_runtime_test.cc')
-rw-r--r--runtime/common_runtime_test.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/common_runtime_test.cc b/runtime/common_runtime_test.cc
index fba0f1c758..16b594d527 100644
--- a/runtime/common_runtime_test.cc
+++ b/runtime/common_runtime_test.cc
@@ -49,6 +49,7 @@
#include "gc_root-inl.h"
#include "gtest/gtest.h"
#include "handle_scope-inl.h"
+#include "instrumentation.h"
#include "interpreter/unstarted_runtime.h"
#include "jni/java_vm_ext.h"
#include "jni/jni_internal.h"