[tracing] Use perfetto's interning logic in TrackEventThreadLocalEventSink
Simplify the logic in question by using the perfetto's
TrackEventInternedDataIndex and removes duplicated logic from
TrackEventThreadLocalEventSink.
Also avoid interning non-const strings and write them directly.
R=eseckler@chromium.org,skyostil@chromium.org
Change-Id: I222811ec52120aa71fb2857146fc449e09461c09
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2862845
Commit-Queue: Alexander Timin <altimin@chromium.org>
Reviewed-by: Eric Seckler <eseckler@chromium.org>
Reviewed-by: Sami Kyöstilä <skyostil@chromium.org>
Cr-Commit-Position: refs/heads/master@{#907585}
NOKEYCHECK=True
GitOrigin-RevId: 672ca4bd3e2cb5d10fb25c5c4984a8ebc5930749
1 file changed