commit | 3a1ed6fb6ab853faedf42b7373fde127ba41d4c6 | [log] [tgz] |
---|---|---|
author | Mikhail Khokhlov <khokhlov@google.com> | Mon Mar 20 09:34:44 2023 +0000 |
committer | Mikhail Khokhlov <khokhlov@google.com> | Mon Mar 20 09:34:44 2023 +0000 |
tree | cf2ebfe4296c0a3d5f2d88a82d31be206bd10851 | |
parent | 43c115e894784ac69fe444173612c8339d2a17d5 [diff] |
Add TraceForCategory* methods for legacy macros Introduces additional TrackEvent template methods and redefines legacy macros using them. The goal is to avoid instantiating templates taking a lambda as a parameter, because this leads to binary size bloat. This change saves ~220KB of binary size in Chrome Android build with Perfetto client library. Bug: 268328757 Change-Id: I1437e1348b7ab0667e029145063760b427c4011c
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.