Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Issue 1188773005: DevTools: fix concurrency problems in DevToolsFrameTraceRecorder (Closed)

Created:
5 years, 6 months ago by caseq
Modified:
5 years, 5 months ago
Reviewers:
dsinclair, dgozman, pfeldman
CC:
chromium-reviews, wfh+watch_chromium.org, jam, yurys, darin-cc_chromium.org, devtools-reviews_chromium.org, tracing+reviews_chromium.org, erikwright+watch_chromium.org, pfeldman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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= Committed: https://crrev.com/42d6d7e559bb9d85487dc27ac88ae3dc3e4e2544 Cr-Commit-Position: refs/heads/master@{#335886}

Patch Set 1 #

Total comments: 2

Patch Set 2 : review comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -59 lines) Patch
M base/trace_event/trace_event.h View 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/devtools/devtools_frame_trace_recorder.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/devtools/devtools_frame_trace_recorder.cc View 1 3 chunks +58 lines, -58 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
caseq
5 years, 6 months ago (2015-06-16 14:36:19 UTC) #2
dgozman
devtools lgtm https://codereview.chromium.org/1188773005/diff/1/content/browser/devtools/devtools_frame_trace_recorder.cc File content/browser/devtools/devtools_frame_trace_recorder.cc (right): https://codereview.chromium.org/1188773005/diff/1/content/browser/devtools/devtools_frame_trace_recorder.cc#newcode85 content/browser/devtools/devtools_frame_trace_recorder.cc:85: TRACE_DISABLED_BY_DEFAULT("devtools.screenshot"), "Screenshot", 1, What are these "Screenshot" ...
5 years, 6 months ago (2015-06-16 15:19:28 UTC) #3
caseq
On 2015/06/16 15:19:28, dgozman wrote: > https://codereview.chromium.org/1188773005/diff/1/content/browser/devtools/devtools_frame_trace_recorder.cc > File content/browser/devtools/devtools_frame_trace_recorder.cc (right): > > https://codereview.chromium.org/1188773005/diff/1/content/browser/devtools/devtools_frame_trace_recorder.cc#newcode85 > ...
5 years, 6 months ago (2015-06-16 17:54:45 UTC) #4
dsinclair
lgtm
5 years, 6 months ago (2015-06-16 19:44:52 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188773005/20001
5 years, 6 months ago (2015-06-16 19:46:17 UTC) #8
caseq
This depends on a front end change (https://codereview.chromium.org/1184383002/) due to event type & name change.
5 years, 6 months ago (2015-06-16 20:32:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188773005/20001
5 years, 6 months ago (2015-06-23 16:24:46 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/4051)
5 years, 6 months ago (2015-06-23 16:51:03 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188773005/20001
5 years, 6 months ago (2015-06-23 16:53:31 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/23352)
5 years, 6 months ago (2015-06-23 17:08:59 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188773005/20001
5 years, 6 months ago (2015-06-24 07:50:59 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 5 months ago (2015-06-24 08:23:56 UTC) #21
commit-bot: I haz the power
5 years, 5 months ago (2015-06-24 08:24:52 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/42d6d7e559bb9d85487dc27ac88ae3dc3e4e2544
Cr-Commit-Position: refs/heads/master@{#335886}

Powered by Google App Engine
This is Rietveld 408576698