summaryrefslogtreecommitdiff
path: root/libunwindstack/Android.bp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2020-04-14 11:59:15 -0700
committerChristopher Ferris <cferris@google.com>2020-04-15 14:03:21 -0700
commit8f9438cc617093771497176c843fa586f3932404 (patch)
treebaf892108bf14841b675397909f30cb70c676afa /libunwindstack/Android.bp
parentda823b54c22727a6adfb10046589df9e296729f3 (diff)
downloadunwinding-8f9438cc617093771497176c843fa586f3932404.tar.gz
Add benchmarks for symbol reading.
Add a number of benchmarks to time how long it takes to look up symbols. Test: Ran benchmarks on device. Change-Id: Iab7aab3f60c2c7056395beca3d36263420bcb5dc
Diffstat (limited to 'libunwindstack/Android.bp')
-rw-r--r--libunwindstack/Android.bp14
1 files changed, 14 insertions, 0 deletions
diff --git a/libunwindstack/Android.bp b/libunwindstack/Android.bp
index 9afc9a3..ab59a4b 100644
--- a/libunwindstack/Android.bp
+++ b/libunwindstack/Android.bp
@@ -373,12 +373,26 @@ cc_benchmark {
srcs: [
"benchmarks/unwind_benchmarks.cpp",
+ "benchmarks/SymbolBenchmark.cpp",
+ ],
+
+ data: [
+ "benchmarks/files/*",
],
shared_libs: [
"libbase",
"libunwindstack",
],
+
+ target: {
+ android: {
+ static_libs: [
+ "libmeminfo",
+ "libprocinfo",
+ ],
+ },
+ },
}
// Generates the elf data for use in the tests for .gnu_debugdata frames.