perfetto-ui: Replace query with fast version
perfetto-ui: Replace query with fast version

When loading a trace with ~60000 threads this takes the
query time from around 15s to ~0.3s.

Change-Id: Id9b701ef3a75e166a12cfe7df4552d086f3bb930
google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto