commit | 172c19f9a187bb46c69070f9d859cd796fe7ab58 | [log] [tgz] |
---|---|---|
author | Ryan Savitski <rsavitski@google.com> | Thu Apr 01 16:19:16 2021 +0100 |
committer | Ryan Savitski <rsavitski@google.com> | Thu Apr 01 17:18:06 2021 +0000 |
tree | c620a66c09e57b3e76c09b8cbb7a97641780f849 | |
parent | c8bb8ff5c80e17e7731218cee80303f8d26068e6 [diff] |
metrics: allow metric proto enums to be set with |long| values This is the simplest change to get enum support in metrics. The types are sensible since enums are encoded as varints. I've briefly looked at supporting enums by name via AppendString searching the descriptor for the enum's name->value conversion, but, I think that to avoid edge cases we'd need the conversion to also consider the field's enum proto type (in case the unqualified constant name is ambiguous), and again, it didn't seem worth adding that logic at this point in time. Bug: 184265484 Change-Id: Ia85abab569e7290687d097c34aa7b6db50615c55
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.