perfetto-ui: Fix thread state
Thread state was not displaying when there was no waking/wakeup events.
This was caused by a join being the wrong way round when the
thread_state was converted into a global table.
Change-Id: If65c6e40b465f755f6779c454470c4489e690513
diff --git a/ui/src/controller/trace_controller.ts b/ui/src/controller/trace_controller.ts
index 88e2190..f819244 100644
--- a/ui/src/controller/trace_controller.ts
+++ b/ui/src/controller/trace_controller.ts
@@ -839,9 +839,9 @@
select first_thread.ts as ts,
coalesce(min(runnable.ts), (select end_ts from trace_bounds)) -
first_thread.ts as dur,
- runnable.utid as utid
- from runnable
- JOIN first_thread using(utid) group by utid`);
+ first_thread.utid as utid
+ from first_thread
+ LEFT JOIN runnable using(utid) group by utid`);
await engine.query(`create view full_runnable as
select * from runnable UNION