commit | d94bebf3e6746ec49f752da5c25cb3d34fa7089d | [log] [tgz] |
---|---|---|
author | Alexander Timin <altimin@google.com> | Mon Mar 14 16:59:51 2022 +0000 |
committer | Alexander Timin <altimin@google.com> | Mon Mar 14 16:59:51 2022 +0000 |
tree | 9e6705ecfc4c4999eb274c05a7ae71d3d951587d | |
parent | 94204c6f237de4199535655489700bf1c5134836 [diff] |
Make TracedDictionary/Array implicitly constructible from TracedValue. Allow TracedDictionary & TracedArray to be implicitly constructed from TracedValue, similarly to TracedProto<T>. This will allow to simplify a common case of writing a nested dictionary / array from TRACE_EVENT("cat", "E", "data", [](perfetto::TracedValue ctx) { perfetto::TracedDictionary dict = std::move(ctx).WriteDictionary(); dict.Add(...); }); to TRACE_EVENT("cat", "E", "data", [](perfetto::TracedDictionary dict) { dict.Add(...); }); R=eseckler@google.com,skyostil@google.com CC=primiano@google.com Bug: b/184558843 Change-Id: If5391ff3f22654a307a04a8faa1b69cc21ecbdaa
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.