ui: Improve runtime of CPU by thread/process
Improve UI runtime of "CPU by thread" and "CPU by process" by doing the
thread/process association onetime upfront, instead of re-generating the
table every iteration a UI selection changes.
UI Profiling (cumulative sum):
CPU by thread: ~7s -> ~6s
CPU by process: ~10s -> ~7s
Wattson by thread: ~16s -> ~15s
Wattson by process: ~30s -> ~30s
Bug: 354256369
Change-Id: I931b4ec2098a154658d412d2315bd0cd278a3aa7
Signed-off-by: Samuel Wu <wusamuel@google.com>
diff --git a/Android.bp b/Android.bp
index 065b82a..1f7ea40 100644
--- a/Android.bp
+++ b/Android.bp
@@ -13368,6 +13368,7 @@
"src/trace_processor/perfetto_sql/stdlib/viz/summary/processes.sql",
"src/trace_processor/perfetto_sql/stdlib/viz/summary/slices.sql",
"src/trace_processor/perfetto_sql/stdlib/viz/summary/threads.sql",
+ "src/trace_processor/perfetto_sql/stdlib/viz/summary/threads_w_processes.sql",
"src/trace_processor/perfetto_sql/stdlib/viz/summary/tracks.sql",
"src/trace_processor/perfetto_sql/stdlib/wattson/arm_dsu.sql",
"src/trace_processor/perfetto_sql/stdlib/wattson/cpu_idle.sql",