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

Commit 2a1a394e authored by Milo Sredkov's avatar Milo Sredkov
Browse files

Add BinderObserverConfig and default sharding (3)

Add a new BinderObserverConfig class to keep track of the current
sharding config and determine whether stats collection should be
enabled on the process or AIDL level.

Add default sharding parameters and lots of tests.

This is to ensure the overhead of tracking stats is kept at a
reasonable level. Later the sharding parameters will be made
configurable via system properties.

Co-authored by Parth Sane <parthsane@google.com> (see ag/34203654).

Note that this change was reverted due to a test breakage twice
(b/432893815, b/433465335). The failing test didn't like logcat logging.
Attempt 2 didn't remove all non-error logging, this one does remove the
remaining ALOGI statement.

Bug: 299356196
Test: atest binderObserverConfigUnitTest
Flag: build.RELEASE_LIBBINDER_BINDER_OBSERVER
Change-Id: I896393f924f695c6c84332b0dc9ad0b63b72efde
parent 32f7d78c
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