Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05d30d22 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "binderRpcBenchmark: repeatBinder kernel binder" am: 3c2f9023 am:...

Merge "binderRpcBenchmark: repeatBinder kernel binder" am: 3c2f9023 am: f3c49f38 am: 13e0a6a2 am: 33ce0b7a

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1793127

Change-Id: I519ede9a2a8fab327ec439b570168409c8c95086
parents 92d38757 33ce0b7a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -153,7 +153,7 @@ BENCHMARK(BM_throughputForTransportAndBytes)
                       {64, 1024, 2048, 4096, 8182, 16364, 32728, 65535, 65536, 65537}});
                       {64, 1024, 2048, 4096, 8182, 16364, 32728, 65535, 65536, 65537}});


void BM_repeatBinder(benchmark::State& state) {
void BM_repeatBinder(benchmark::State& state) {
    sp<IBinder> binder = gSession->getRootObject();
    sp<IBinder> binder = getBinderForOptions(state);
    CHECK(binder != nullptr);
    CHECK(binder != nullptr);
    sp<IBinderRpcBenchmark> iface = interface_cast<IBinderRpcBenchmark>(binder);
    sp<IBinderRpcBenchmark> iface = interface_cast<IBinderRpcBenchmark>(binder);
    CHECK(iface != nullptr);
    CHECK(iface != nullptr);