diff options
author | 2022-09-26 15:31:34 +0000 | |
---|---|---|
committer | 2022-10-04 09:01:14 +0000 | |
commit | eed7aec50d6a4576ba170da82e79b3d71d977fa0 (patch) | |
tree | 064a73fc89be1f02e0db258150d2dfd91a5bfc67 /benchmark/Android.bp | |
parent | 64d8094866d8c0c9a2549cea1c177dbb57eb346b (diff) |
Add libgolemtiagent.so to set breakpoints on golem benchmarks
We are updating debuggable-cc configuration in golem benchmarks to
measure the performance of debugger. As a first step, we are adding
a breakpoint to measure the overhead of instrumentation related code.
To achieve this we need a tiagent to be able to set a breakpoint. This
CL adds a minimal ti agent that could be used in golem benchmarks.
The changes in this CL:
1. Adds Agent_OnLoad callback which installs a listener for VM_INIT
event.
2. On the VM_INIT callback we set a breakpoint on Thread.stop which is a
deprecated method and not expected to be used much.
3. Adds rules to build libgolemtiagent.so for build-art-host-golem
target.
Bug: 232212577
Test: m build-art-host-golem
Change-Id: I2da3770ff85edb46da64d09ec0047ec6e7564fd0
Diffstat (limited to 'benchmark/Android.bp')
-rw-r--r-- | benchmark/Android.bp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/benchmark/Android.bp b/benchmark/Android.bp index 43f46c3907..c7f9f6b1da 100644 --- a/benchmark/Android.bp +++ b/benchmark/Android.bp @@ -83,3 +83,30 @@ art_cc_library { }, }, } + +art_cc_library { + name: "libgolemtiagent", + host_supported: true, + defaults: ["art_defaults"], + srcs: [ + "golem-tiagent/golem-tiagent.cc", + ], + target: { + // This has to be duplicated for android and host to make sure it + // comes after the -Wframe-larger-than warnings inserted by art.go + // target-specific properties + android: { + cflags: ["-Wno-frame-larger-than="], + }, + host: { + cflags: ["-Wno-frame-larger-than="], + }, + }, + header_libs: [ + "libnativehelper_header_only", + "libopenjdkjvmti_headers" + ], + shared_libs: [ + "libbase", + ], +} |