commit | ab9045877d41f6bfb5d3d3cea5e2d758ca620ec8 | [log] [tgz] |
---|---|---|
author | Isabelle Taylor <taylori@google.com> | Thu Nov 28 18:20:56 2019 +0000 |
committer | Isabelle Taylor <taylori@google.com> | Thu Nov 28 18:20:56 2019 +0000 |
tree | bb591765fe2b50a4082f43f287071a6d98d71504 | |
parent | 4effe2a23aa4ff26bed4601d9c21710563d66aec [diff] |
Create a reusable thread_state table We want to be able to query the thread states when aggregating CPU information over selected tracks. This means that the previous method of having separate views for each utid that contain the thread states no longer works. We really need one view that contains all of the utids. However b/145350531 prevents this from being fast enough for the UI. In the mean time we will create a thread state table. This uses around 80-90% of the trace size in memory which is not ideal. However we are saving some memory in aosp/1178075 so end users shouldn't notice a difference. Once the bug above is fixed this can be changed to be a view or in the future we can store in in the trace processor as an optimised table to save roughly 50% of the memory cost. Change-Id: I36ccd7cbce58f71f34154d9a2efd1ba65fafea9f
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.