commit | a446d4bfb0414f188051c121580226e402bcfedf | [log] [tgz] |
---|---|---|
author | Jorim Jaggi <jjaggi@google.com> | Thu Nov 18 19:04:48 2021 +0100 |
committer | Jorim Jaggi <jjaggi@google.com> | Mon Dec 13 15:20:22 2021 +0000 |
tree | b7b656f5b6dd47eb4a0e907adb86cdc90308685d | |
parent | d23ba31cd55e1499ed76d98089a697b4ef5a85cc [diff] |
Add cheap aidl tracing suitable for always-on-tracing (2/3) Instead of having only one switch to enable all binder tracing, we seperate between stack tracking and tracing. Stack tracking still works as before. However, the more lightweight option, tracing using android.os.Trace, is toggleable separately and will work on the receiver side without dumping the entire stack trace. We also make the tracing more efficient by caching getTransactionName and concatting the class name. Also, enable this selectively for SysUI+Launcher, which is currently the focus of always-on-tracing effort to figure out what kind of binder calls these processes are calling which seems to contribute a huge amount of jank (long binder calls are in >= 50% of janky traces). Test: external/perfetto/tools/record_android_trace gfx view freq sched wm am aidl Test: atest aidl_unittest Bug: 202278427 Change-Id: Ic71fd925c6df71f82ddacfb42360b86257feb1cb Merged-In: Ic71fd925c6df71f82ddacfb42360b86257feb1cb
Documentation for this project is currently maintained here:
https://source.android.com/devices/architecture/aidl/overview