DevTools: fix concurrency problems in DevToolsFrameTraceRecorder
DevToolsFrameTraceRecorder used to mutate the class being traced
after the moment when it was traced, which created potential races
against conversion of that class to trace format, potentially performed
on a different thread after trace completion. Let's create a
retrospective trace event when frame capture is done instead. Also,
convert the trace event from instant to object snapshot, which is
more appropriate for the data being logged.
Tracing: add TRACE_EVENT_OBJECT_SNAPSHOT_WITH_ID_AND_TIMESTAMP()
BUG=
Review URL: https://codereview.chromium.org/1188773005
Cr-Commit-Position: refs/heads/master@{#335886}
CrOS-Libchrome-Original-Commit: 42d6d7e559bb9d85487dc27ac88ae3dc3e4e2544
1 file changed