commit | 1a69d01fef87276711002b7764abe14be2e8a05a | [log] [tgz] |
---|---|---|
author | Primiano Tucci <primiano@google.com> | Tue Sep 07 14:52:27 2021 +0100 |
committer | Primiano Tucci <primiano@google.com> | Tue Sep 07 14:43:38 2021 +0000 |
tree | 9d2ecb0686a142edad35d56467b1e470debe6c9b | |
parent | 5eabf6fb85f48ee57d3f361fa3377bc00a1e13cd [diff] |
base: don't enable DCHECKs in SDK builds Until now DCHECKs were linked to the NDEBUG symbols. This CL restricts this to: (1) standalone; (2) chromium-tree; (3) android-tree builds. In all other cases (in particular, for SDK/amalgamated builds) DCHECKs are off by default, regardless of NDEBUG. The old behavior turned out to be problematic for amalgamated SDK users for two reasons: 1. Some of them reportedly build perfetto.cc once as a static library and then build perfetto.h as part of various .so(s). The NDEBUG flag might not match in all cases. 2. In general when projects that embed perfetto build in debug mode, they likely want to debug their own code, not perfetto's. Bug: 197340286 Change-Id: Idcc94b300715c88fb578b679fb1d54f354c54adb
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.