commit | ef4e7735a5dcc11aefd2ce1af67c942eb9ddbcd3 | [log] [tgz] |
---|---|---|
author | Eric Seckler <eseckler@google.com> | Tue Mar 30 13:55:03 2021 +0100 |
committer | Eric Seckler <eseckler@google.com> | Tue Mar 30 13:55:03 2021 +0100 |
tree | 4ca91799272203392938dbf17e42858f514c85f8 | |
parent | 91b4f68052b4d97bd4c803605b7f9577be2f0410 [diff] |
sdk: Support embedder-provided policy approving consumer connections ChromeOS needs a way to deny (system) consumer connections when a specific enterprise policy is set. This patch adds a TracingPolicy object to InitTracingArgs which is notified for each new consumer session, allowing the embedder to deny them. Since Chrome can only check for this policy on a specific thread, the approval can be asynchronous. To support this, the SDK's ConsumerImpl object is created before the service consumer connection is initialized. This works fine, because subsequent interactions with the object already have to consider a delayed service connection. Bug: 183391449 Change-Id: Ibe70e01a69bb8cfe0447e986647a499de90c5012
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.