commit | 292a92cdf5eb5829907fa1b41a2bdba899b9c83c | [log] [tgz] |
---|---|---|
author | Andrew Shulaev <ddrone@google.com> | Thu Nov 12 14:32:04 2020 +0000 |
committer | Andrew Shulaev <ddrone@google.com> | Thu Nov 12 14:36:42 2020 +0000 |
tree | 6aa18753bd4110ad18ba71fa3295fc5d9ce45db0 | |
parent | 53d3c085a784d64808cf67a32cac80182ecd87ef [diff] |
Add ability to omit protozero dep in protozero_library In Chromium, //base depends on //third_party/perfetto, as documented in https://docs.google.com/document/d/1UQ4Ez7B-TeowijOUuMXuoWj1amZcQ7E2abt3s4jaAEY/edit#heading=h.jkzl3mb2kwbo In order to use Chromium-specific extensions, base needs to depend on Protozero-generated code. protozero_library is the build rule that provides such generation, but the direct dependency on Protozero sources instead of libperfetto leads to including the same symbols twice, resulting in ODR violation for binaries that include both base with tracing and libperfetto. A new flag in protozero_library would be used in Chromium to avoid that. Bug: 171790119 Change-Id: I6649a487d4546b6a9dad6a61563aa28e1203fdcb
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.