Perfetto: Optimize proto usage

This bundles multiple events into the same higher-level message and adds
a string table implementation for frequently repeated strings,
on a per-thread basis; specifically the event name, category name,
and the name of its arguments.

Requires https://android-review.googlesource.com/c/platform/external/perfetto/+/755290
to roll into //third_party/perfetto before landing.

R=primiano@chromium.org,skyostil@chromium.org

Bug: 839116
Change-Id: Id2681970db5b7ea5cadf0ee9bbcbbc1ebbba08c3
Reviewed-on: https://chromium-review.googlesource.com/1225306
Commit-Queue: oysteine <oysteine@chromium.org>
Reviewed-by: Sami Kyöstilä <skyostil@chromium.org>
Cr-Commit-Position: refs/heads/master@{#592090}
5 files changed