Various fixes in EXPERIMENTAL_PERF_PROFILE
Various fixes in EXPERIMENTAL_PERF_PROFILE

Bunch of issues I found while playing around with this new function.

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