commit | 7b37bbfad45feb7cd5242590da974935bde1430d | [log] [tgz] |
---|---|---|
author | Lalit Maganti <lalitm@google.com> | Fri Nov 09 15:58:54 2018 +0000 |
committer | Lalit Maganti <lalitm@google.com> | Fri Nov 09 15:58:54 2018 +0000 |
tree | a83a9f52990b21ac9748ebffd934a903000ff63f | |
parent | 5fc6c2c52e7b255849ed5ce5312970c6a1fec53b [diff] |
trace_processor: fix ordering of slices in trace storage Slices are meant to be stored ordered by timestamp. However, because we were waiting until the end event to push the slice to storage, each stack would actually be stored in *reverse* timestamp order. Fix this issue by pushing the slice to storage as soon as we see the start event and then updating duration after the fact. This works similarily to sched events. Change-Id: If89ff8f4fde91917b090f1013efafd0f3d9d997d
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.