commit | ce7978455294bfde640d6d89158b6688deb01135 | [log] [tgz] |
---|---|---|
author | Daniele Di Proietto <ddiproietto@google.com> | Tue Nov 23 18:38:04 2021 +0000 |
committer | Daniele Di Proietto <ddiproietto@google.com> | Thu Nov 25 17:26:10 2021 +0000 |
tree | 0ead14fae665339715950cf38da6b9e69fd5d01e | |
parent | 4a1e74713e4ce6949bb5bb00d95548bd896f007a [diff] |
Add ReadBuffersIntoConsumer and ReadBuffersIntoFile ReadBuffers() handles two separate cases: * Writing into a file. * Sending data to a consumer via IPC. Some of the internal code might be shared, but the external semantics are different enough to justify two functions with two separate comments. No functional change. In particular because: * `this` is never nullptr. ReadBuffers(..., this) always means ReadBuffersIntoConsumer * weak_consumer can not be nullptr. The code checks it on the like above (and base::WeakPtr is not thread-safe, so it has not changed). Bug: 195145848 Change-Id: I3336919b041ad6bcf4b0e336405812dbee8c493b
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.