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

Issue 1775953003: Reland Trace FrameTreeNode Snapshots (Closed)

Created:
4 years, 9 months ago by benjhayden
Modified:
4 years, 9 months ago
Reviewers:
clamy, Sami, nasko
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland Trace FrameTreeNode Snapshots This is a reland of https://codereview.chromium.org/1390053002 That CL was reverted due to a data race in RenderProcessHostImpl::GetHandle. This CL removes the FrameTreeNode::TraceSnapshot() call in FrameTreeNode's constructor so that FrameTreeNodes are only snapshot after they are initialized. This CL also removes the TraceLog observation so that snapshots are not traced when tracing starts. There's an easy fix for the data race that it caused, but it might not be the right fix. BUG=537802 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/d4da63d8b5c49d7fa7a2ec9821400350a0670059 Cr-Commit-Position: refs/heads/master@{#380737}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix comment #

Patch Set 3 : remove TraceLog observation #

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -0 lines) Patch
M content/browser/frame_host/frame_tree_node.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/frame_host/frame_tree_node.cc View 1 2 6 chunks +22 lines, -0 lines 0 comments Download
A content/browser/frame_host/traced_frame_tree_node.h View 1 chunk +36 lines, -0 lines 0 comments Download
A content/browser/frame_host/traced_frame_tree_node.cc View 1 chunk +69 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (13 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775953003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775953003/1
4 years, 9 months ago (2016-03-08 19:21:34 UTC) #3
benjhayden
Sorry, it looks like Nasko was right about waiting to snapshot until after the RenderFrameHostImpl ...
4 years, 9 months ago (2016-03-08 19:22:39 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-08 21:10:00 UTC) #7
nasko
LGTM with a nit. https://codereview.chromium.org/1775953003/diff/1/content/browser/frame_host/frame_tree_node.cc File content/browser/frame_host/frame_tree_node.cc (right): https://codereview.chromium.org/1775953003/diff/1/content/browser/frame_host/frame_tree_node.cc#newcode113 content/browser/frame_host/frame_tree_node.cc:113: // Don't TraceSnapshot() until the ...
4 years, 9 months ago (2016-03-09 22:33:00 UTC) #8
benjhayden
Thanks! I'll be sure to upload the original patch next time I reland something. https://codereview.chromium.org/1775953003/diff/1/content/browser/frame_host/frame_tree_node.cc ...
4 years, 9 months ago (2016-03-10 00:05:21 UTC) #9
benjhayden
I dug into the TSan data race in TracingControllerTest.EnableAndStopTracingWithEmptyFileAndNullCallback. I found that TraceLog calls OnTraceLogEnabled ...
4 years, 9 months ago (2016-03-11 01:11:31 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775953003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775953003/40001
4 years, 9 months ago (2016-03-11 01:13:44 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/179924)
4 years, 9 months ago (2016-03-11 01:46:27 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775953003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775953003/60001
4 years, 9 months ago (2016-03-11 18:47:55 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/195577)
4 years, 9 months ago (2016-03-11 19:28:43 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1775953003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1775953003/60001
4 years, 9 months ago (2016-03-11 20:44:22 UTC) #23
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-11 21:29:41 UTC) #24
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 21:31:04 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d4da63d8b5c49d7fa7a2ec9821400350a0670059
Cr-Commit-Position: refs/heads/master@{#380737}

Powered by Google App Engine
This is Rietveld 408576698