commit | f0f09c3be1f7fcec1a55f3bb784998ac632ff161 | [log] [tgz] |
---|---|---|
author | Lalit Maganti <lalitm@google.com> | Fri Jan 18 17:29:31 2019 +0000 |
committer | Lalit Maganti <lalitm@google.com> | Fri Jan 18 17:29:48 2019 +0000 |
tree | a4ea244c17988eb733a4b9d0be601136ab0dc59d | |
parent | 536a9711490280bcd40efbb101b8574a5e58544f [diff] |
trace_processor: make utid lookup in sched table fast We almost always want to join sched with the thread table to get more information about the slice. This CL adds a index for the utid column to allow efficient lookups of utid in the sched table. For example for the example trace the following query: select sum(dur) from sched join thread using(utid) where upid = 15; Old code: 30ms New code 0.3ms This sort of query is used by the UI to do summarization of the time scheduled for each process. Change-Id: I51a655ff1af7bdbdbe6f79eadcb9fa2896e70a4d
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.