commit | 76d51b13cfc1fad02fb28f7d56690cde33b92ea1 | [log] [tgz] |
---|---|---|
author | Yurii Zubrytskyi <zyy@google.com> | Wed Aug 16 13:45:09 2023 -0700 |
committer | Yurii Zubrytskyi <zyy@google.com> | Wed Aug 16 13:51:38 2023 -0700 |
tree | 47ce36186a93f59cf2977d144f6bed44b37377ba | |
parent | 67a1c1a79e4f2373b57a5c4c7173bb383ef75066 [diff] |
[aapt2] Fix and optimize tracing - Make it log the tags for both begin and end events, otherwise visualizations can't calculate the duration - Wrap the whole file in a JSON array to make Perfetto open it - Switch the whole thing off when not enabled, don't waste cycles on adding events. Bug: 294025081 Test: manual tracing run Change-Id: I42d0fa5518190783c4d58a644f783ac6e7dcd1a3