devtools/tracing: Notify client about data loss during tracing

Telemetry would like to know if the trace is incomplete, e.g. due to
the trace ring buffer wrapping around, since this can result in
incorrect metrics computation.

This patch adds a param to the Tracing.tracingComplete devtools event,
which we set based off the buffer stats reported by perfetto. For that
purpose, we also plumb a corresponding boolean through the
TracingSession consumer mojo interface.

Bug: 948412
Change-Id: I327e117229893232170111659ed84f7e67debdf9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1666633
Commit-Queue: Eric Seckler <eseckler@chromium.org>
Reviewed-by: Sami Kyöstilä <skyostil@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Andrey Kosyakov <caseq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#670848}
4 files changed