commit | 7d7193aa68ea67c9bd08c1281b20a3d15ae9da33 | [log] [tgz] |
---|---|---|
author | Hector Dearman <hjd@google.com> | Mon Mar 20 14:10:06 2023 +0000 |
committer | Hector Dearman <hjd@google.com> | Mon Mar 20 14:10:06 2023 +0000 |
tree | 61aca3f5c89c449a4be8e8430ecdcf0322a32c47 | |
parent | 1f31741f996eda6ebede318d82e9b3a6bb12aaa8 [diff] |
traced_probes: Refactor statsd_client A lot of the over general code in statsd_data_source was based on the idea that we would eventually add a second `StatsdBackend` which, rather than execing `cmd stats data-subscribe`, used the related binder API[1]. Since that API was also based around file descriptions a lot of the code could be shared. As it happens that didn't work out and the new binder based API we are actually going to used is callback based so the generalisation was unnecessary. Instead the callback based API can have a DataSource subclass all of it's own. This CL: - collapses ExecStatsdBackend into the main class - extracts the code we'll actually want to share into a 'common' file - Does a few other random cleanups (removing the unused GetWeakPtr static method). [1]: https://cs.android.com/android/platform/superproject/+/master:frameworks/native/libs/binder/ndk/include_cpp/android/binder_interface_utils.h;l=243;drc=affab527c820c06d3a6b3c4451aaaa744e652eb7 Bug: 268661096 Change-Id: If6701b1f677028573495ccc0cab3e67ce615b15e
Perfetto is a production-grade open-source stack for performance instrumentation and trace analysis. It offers services and libraries and for recording system-level and app-level traces, native + java heap profiling, a library for analyzing traces using SQL and a web-based UI to visualize and explore multi-GB traces.
See https://perfetto.dev/docs or the /docs/ directory for documentation.