I am doing a project which does real time analysis of the system on android phone.I want to know how many clients are bounded to a any remote services at a given point in time.
For example:No of clients bounded to LocationManager service.
This will help me identify application which are stressing the system services.Also it will help me identify whether its the system service which is badly written or the clients of the system service are behaving badly.
Eg:I found out that when you continously query/update/delete contacts content provider,the system shows com.android.acore is consuming more cpu but in reality its the third party app which is behaving bad.
I am working on custom ROM and have access to code for making any modifications.
I know binders are reference counted and each BinderProxy which references a Binder constitutes a reference to that Binder.But I am not sure how it is done in code.
Please share your knowledge if anyone has already done some research on it.