diff options
author | Christopher Ferris <cferris@google.com> | 2019-04-25 13:19:02 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2019-06-05 14:45:09 -0700 |
commit | 37dca4b03a09f287e7fd0208df92483c4269e093 (patch) | |
tree | 8807933d0e01896cf3f50095bd61a7307c0a0021 /memory_replay/Android.bp | |
parent | 88ef680567ed08387ff041883b23a61d1a340449 (diff) | |
download | extras-37dca4b03a09f287e7fd0208df92483c4269e093.tar.gz |
Update code and add a way to benchmark traces.
The benchmarker treats the trace like a single thread trace.
Bug: 129743239
Test: Ran benchmarks and verified there are no error and numbers seem sane.
Test: Verified locking to a cpu works.
Change-Id: I598d014ff65569271b45ec6567db1c39b26d4e2d
Diffstat (limited to 'memory_replay/Android.bp')
-rw-r--r-- | memory_replay/Android.bp | 62 |
1 files changed, 52 insertions, 10 deletions
diff --git a/memory_replay/Android.bp b/memory_replay/Android.bp index 824ac125..753b8add 100644 --- a/memory_replay/Android.bp +++ b/memory_replay/Android.bp @@ -1,21 +1,28 @@ +// +// Copyright (C) 2018 The Android Open Source Project +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// + cc_defaults { - name: "memory_replay_defaults", + name: "memory_flag_defaults", host_supported: true, - srcs: [ - "Action.cpp", - "LineBuffer.cpp", - "NativeInfo.cpp", - "Pointers.cpp", - "Thread.cpp", - "Threads.cpp", - ], cflags: [ "-Wall", "-Wextra", "-Werror", ], - shared_libs: ["libbase"], target: { darwin: { @@ -24,6 +31,23 @@ cc_defaults { }, compile_multilib: "both", +} + +cc_defaults { + name: "memory_replay_defaults", + defaults: ["memory_flag_defaults"], + + srcs: [ + "Action.cpp", + "LineBuffer.cpp", + "NativeInfo.cpp", + "Pointers.cpp", + "Thread.cpp", + "Threads.cpp", + ], + + shared_libs: ["libbase"], + multilib: { lib32: { suffix: "32", @@ -63,3 +87,21 @@ cc_test { }, }, } + +cc_benchmark { + name: "trace_benchmark", + defaults: ["memory_flag_defaults"], + + srcs: [ + "TraceBenchmark.cpp", + ], + + shared_libs: [ + "libbase", + "libziparchive", + ], + + data: [ + "dumps/*", + ], +} |