For Android systems developers studying Binder. Fixed experiment modes and request IDs distinguish client, server Binder thread and Handler timing.
Question and environment
After a Binder call arrives, where does latency accumulate: in the Binder thread or in the Handler queue? The comparison uses published v1.3 traces from an Android 16 / API 36 device.
- ClientSend request
- H0BPost to queue
- H1Start handler
- Handler wait · baseline
- 4.72 ms
- Handler wait · injected block
- 1,501.21 ms
These timings come from a specific trace and an injected block. Compute H0B → H1 from the corresponding traces when evaluating other devices or workloads.
Verify and use
- Start with the pinned v1.3 evidence release. The device runs Android 16, API 36, with SDK 36.1 used for the build.
- Follow the repository README to build and check the device. Capture the baseline and blocked mode separately, and compare markers for the same request ID.
- Compare H0B and H1 for the same request ID to isolate time spent waiting in the Handler queue.
.\run-experiment.ps1 -Mode handler-latency-baseline .\run-experiment.ps1 -Mode handler-latency-blocked