Skip to content

Commit

Permalink
Merge "Revert "adb: make benchmarks build on the host.""
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgao authored and Gerrit Code Review committed Nov 13, 2018
2 parents 3898f7d + 7898e85 commit a958fb6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ cc_test_host {
cc_benchmark {
name: "adb_benchmark",
defaults: ["adb_defaults"],
host_supported: true,

srcs: ["transport_benchmark.cpp"],
target: {
Expand All @@ -227,9 +226,6 @@ cc_benchmark {
"libadb_host",
],
},
darwin: {
enabled: false,
}
},

static_libs: [
Expand Down
2 changes: 0 additions & 2 deletions transport_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,8 @@ ADB_CONNECTION_BENCHMARK(BM_Connection_Echo, ThreadPolicy::SameThread);
ADB_CONNECTION_BENCHMARK(BM_Connection_Echo, ThreadPolicy::MainThread);

int main(int argc, char** argv) {
#if defined(__BIONIC__)
// Set M_DECAY_TIME so that our allocations aren't immediately purged on free.
mallopt(M_DECAY_TIME, 1);
#endif

android::base::SetMinimumLogSeverity(android::base::WARNING);
adb_trace_init(argv);
Expand Down

0 comments on commit a958fb6

Please sign in to comment.