commit | cc898a8addaeb093038a1c4be0dacc5cbd07f3f7 | [log] [tgz] |
---|---|---|
author | Lalit Maganti <lalitm@google.com> | Wed Jan 16 14:52:48 2019 +0000 |
committer | Lalit Maganti <lalitm@google.com> | Wed Jan 16 14:52:48 2019 +0000 |
tree | 0210f2703d2c5049fa7e97746215a23562dfeb9e | |
parent | 8e2b147be7a3fafb751abd95c1183551c005dd75 [diff] |
trace_processor: improve best index for thread table The thread table was relying on only the first constraint to be the utid constraint but with some joins (e.g. select sum(dur) from sched join thread using(utid) where upid = 15;), the constraint on the upid comes first. This caused incorrect BestIndex cost estimation which made SQLite choose bad subqueries with queries like this. Allow any constraint to be on utid to help speed up queries like this. Change-Id: Ibc3a31cdd7a48a4ee499807e2d21775eb18fd058
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.