summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
author Matt Gilbride <mattgilbride@google.com> 2024-09-19 10:17:56 +0000
committer Matt Gilbride <mattgilbride@google.com> 2024-10-22 10:47:23 +0000
commit88f65e236865ccade279316f710c51784e56c452 (patch)
treedbe5a860fe1da6b68624e0e2c5b4a0fcb4f11c47 /build
parent466a0114469f6a03ba1b4a927d994cffbaae6366 (diff)
Add VMDebug_getExecutableMethodFileOffsetsNative
Adds a method that, given a Java/Kotlin method, fetches the ODEX file, offset of that file within the running process, and offset of the method within that file. The mechanism works only for AOT compiled methods for now, but can later be expanded to provide similar info for JIT compiled methods. Bug: 372925025 Test: TH Flag: com.android.art.flags.executable_method_file_offsets Change-Id: I0598b8602d81416f602b186f9f313ec55cfc3e8d
Diffstat (limited to 'build')
-rw-r--r--build/flags/art-flags.aconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/build/flags/art-flags.aconfig b/build/flags/art-flags.aconfig
index e38f62a0ae..35ac49ed0b 100644
--- a/build/flags/art-flags.aconfig
+++ b/build/flags/art-flags.aconfig
@@ -34,3 +34,12 @@ flag {
is_fixed_read_only: true
is_exported: false
}
+
+flag {
+ namespace: "art_performance"
+ name: "executable_method_file_offsets"
+ is_exported: true
+ description: "This flag includes the API for getting the compiled native executable offset info for a java method"
+ bug: "296108553"
+ is_fixed_read_only: true
+}