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

Commit 38b96ebe authored by Milo Sredkov's avatar Milo Sredkov
Browse files

Throttle logging in BBinder::getInterfaceDescriptor()

Currently getInterfaceDescriptor() logs a warning when it is not
implemented. In some cases it may be invoked frequently, and this
logging adds overhead.

Limit the warning to at most once per second. This makes the
binderAddInts benchmark run three times faster.

Bug: 429079371
Test: m binderAddInts && adb push out/soong/.intermediates/system/extras/tests/binder/benchmarks/binderAddInts /data/local/tmp/binderAddInts && adb shell /data/local//tmp/binderAddInts/android_arm64_armv8-2a_cortex-a55/binderAddInts
Flag: build.RELEASE_LIBBINDER_BINDER_OBSERVER
Change-Id: I046adba2dbe32e55fd0a9e4d676106a60bfaa4bf
parent 9d8e8aa6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment