commit | 37d69c1ababaa3282043c668981a6f171dd942b9 | [log] [tgz] |
---|---|---|
author | Eric Seckler <eseckler@google.com> | Wed Jan 22 13:59:54 2020 +0000 |
committer | Eric Seckler <eseckler@google.com> | Wed Jan 22 13:59:54 2020 +0000 |
tree | a39e545894d17b61c07ed06e6f3e4955366eb709 | |
parent | a717e9205b7b3f21a102dfcf580656b1b762b404 [diff] |
processor: Fix order of async events in json export The logic added in aosp/1200648 was flawed: A simple end event stack doesn't work in the presence of multiple async tracks. The stack-based approach would require iterating over a sorted, merged list of begin, instant and async events. However, end events can be seen in an unsorted order due to multiple concurrent tracks. Instead, this patch refactors the ordering logic to add an explicit sorting stage across all async events, which should result in a globally correct sorting order. Bug: 130786269, chromium:1044019 Change-Id: Ib5062ade7638ae566cd68aa645a72386db871936
Perfetto is an open-source project for performance instrumentation and tracing of Linux/Android/Chrome platforms and user-space apps.
See www.perfetto.dev for docs.
See /docs/contributing.md for instructions.
The source-of-truth repo is Android's Gerrit. The GitHub repo is a read-only mirror.
You can reach us on our Discord channel. If you prefer using IRC we have an experimental Discord <> IRC bridge synced with #perfetto-dev
on Freenode.