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
1 file changed