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

Skip to content
Commit 0b60166c authored by Jing Ji's avatar Jing Ji
Browse files

Log the excessive incoming binder proxies into statsd

This CL introduces a new "warning" callback on excessive binder
proxies, where if the total count of binder proxies from certain UID
goes above the threshold, the callback will be triggered. This is
very similar to the existing binder proxy high watermark callback.

We're logging this warning event into statsd, where it may trigger
perfetto dump, before it reaches to the high watermark and gets killed
because of that.

This callback signal could also be used as a hint to the GC in
the future, which could effectively release the references to
remote binder stubs.

Flag: ACONFIG log_excessive_binder_proxies DEVELOPMENT
Bug: 298263955
Test: atest FrameworksCoreTests:android.os.BinderProxyCountingTest
Change-Id: I3c959a7dd62ee57415c22a8034d774fe49a8f64f
parent 021ecf5c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment