commit | ddbbec65087ad837db1c86c6f4baa0bc966f9fdb | [log] [tgz] |
---|---|---|
author | Lalit Maganti <lalitm@google.com> | Thu Nov 07 18:20:04 2019 +0000 |
committer | Lalit Maganti <lalitm@google.com> | Thu Nov 07 18:20:04 2019 +0000 |
tree | bb0207261851b0a87240f01554e5dbcb92e74db3 | |
parent | bbc9700c1827c36f246a3b2037aea26ad16486ac [diff] |
trace_processor: fix broken iteration logic in thread and proces tables This CL fixes the broken logic in iteraing through the threads and processes table when "ORDER BY utid/upid DESC" caluse was present in a query. Before this CL, we would have tried to iterate to uint32::max row because we would have underflowed the index when iterating backwards. Instead, change both tables to always count the offset from min up to max and also change max to a exclusive index to make it more standardised. Change-Id: I6e81d43ef8a53970ca0c7ed70d9a759279f81800
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.
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.