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

Issue 2109843003: Adds enableVirtualTime and setVirtualTimePolicy To Emulation domain. (Closed)

Created:
4 years, 5 months ago by alex clarke (OOO till 29th)
Modified:
4 years, 4 months ago
Reviewers:
jochen (gone - plz use gerrit), Sami, vinodsonkusare77, dcheng, dgozman, pfeldman
CC:
chromium-reviews, tyoshino+watch_chromium.org, kinuko+watch, Yoav Weiss, lushnikov+blink_chromium.org, blink-reviews-api_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, caseq+blink_chromium.org, apavlov+blink_chromium.org, gavinp+loader_chromium.org, devtools-reviews_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, sergeyv+blink_chromium.org, Nate Chapin, scheduler-bugs_chromium.org, loading-reviews_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds enableVirtualTime and setVirtualTimePolicy To Emulation domain. This allows virtual time to be controlled via DevTools protocol. For more details about virtual time see here: https://docs.google.com/document/d/1y9KDT_ZEzT7pBeY6uzVt1dgKlwc1OB_vY4NZO1zBQmo/edit BUG=546953 Committed: https://crrev.com/9599120a7c4d3532a0aaeed18b81ed6e9892381c Cr-Commit-Position: refs/heads/master@{#403943}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Added some tests #

Patch Set 3 : Use a WeakPtr to solve WebViewSchduler <= ResourceLoader lifetime issue #

Patch Set 4 : Addressing Sami's comments #

Patch Set 5 : Fix test crashes #

Patch Set 6 : Fix test crash #

Total comments: 10

Patch Set 7 : Fix layering issue #

Total comments: 6

Patch Set 8 : Addressing Sami's comments #

Total comments: 2

Patch Set 9 : Rebase + address nit #

Total comments: 10

Patch Set 10 : Changes for dgozman #

Patch Set 11 : Remove frame iteration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -15 lines) Patch
M components/scheduler/renderer/web_frame_scheduler_impl.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M components/scheduler/renderer/web_frame_scheduler_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -0 lines 0 comments Download
M components/scheduler/renderer/web_view_scheduler_impl.h View 1 2 3 4 5 6 7 3 chunks +9 lines, -2 lines 0 comments Download
M components/scheduler/renderer/web_view_scheduler_impl.cc View 1 2 3 4 5 6 7 2 chunks +49 lines, -0 lines 0 comments Download
M components/scheduler/renderer/web_view_scheduler_impl_unittest.cc View 1 2 3 4 5 6 7 8 6 chunks +30 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/browser_protocol.json View 1 2 3 4 5 6 7 8 9 2 chunks +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/loader/FrameFetchContext.cpp View 1 2 3 4 5 6 7 4 chunks +7 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/WebViewSchedulerTest.cpp View 1 2 3 4 1 chunk +83 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/InspectorEmulationAgent.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/InspectorEmulationAgent.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VirtualTimeTest.cpp View 1 2 3 4 5 6 7 3 chunks +44 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebFrameScheduler.h View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebViewScheduler.h View 1 2 3 4 5 6 7 1 chunk +22 lines, -7 lines 0 comments Download

Messages

Total messages: 88 (35 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2109843003/1
4 years, 5 months ago (2016-06-29 14:31:08 UTC) #3
alex clarke (OOO till 29th)
I'd like to write some sort of test for this but I'm not sure what ...
4 years, 5 months ago (2016-06-29 14:31:09 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/252360)
4 years, 5 months ago (2016-06-29 16:10:06 UTC) #7
Sami
https://codereview.chromium.org/2109843003/diff/1/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2109843003/diff/1/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode771 third_party/WebKit/Source/core/inspector/browser_protocol.json:771: "name": "setVirtualTimePolicy", Would renderer suspension also fall under this? ...
4 years, 5 months ago (2016-06-29 16:22:27 UTC) #8
alex clarke (OOO till 29th)
PTAL +Pavel https://codereview.chromium.org/2109843003/diff/1/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2109843003/diff/1/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode771 third_party/WebKit/Source/core/inspector/browser_protocol.json:771: "name": "setVirtualTimePolicy", On 2016/06/29 16:22:27, Sami wrote: ...
4 years, 5 months ago (2016-06-29 17:08:31 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2109843003/60001
4 years, 5 months ago (2016-06-29 17:08:57 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/89136) linux_chromium_rel_ng on ...
4 years, 5 months ago (2016-06-29 17:27:27 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2109843003/80001
4 years, 5 months ago (2016-06-29 19:21:31 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/236829)
4 years, 5 months ago (2016-06-29 20:07:40 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2109843003/100001
4 years, 5 months ago (2016-06-29 20:41:08 UTC) #20
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/89327) android_clang_dbg_recipe on ...
4 years, 5 months ago (2016-06-29 20:54:37 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2109843003/120001
4 years, 5 months ago (2016-06-29 20:57:04 UTC) #26
alex clarke (OOO till 29th)
Looks like Pavel is OOO. Dimitri would you mind taking a look?
4 years, 5 months ago (2016-06-29 21:39:16 UTC) #28
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2109843003/140001
4 years, 5 months ago (2016-06-29 21:53:28 UTC) #30
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-30 01:06:47 UTC) #32
dgozman
I only took a close look at inspector-related part. Please tell if you need something ...
4 years, 5 months ago (2016-06-30 17:32:09 UTC) #33
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2109843003/160001
4 years, 5 months ago (2016-07-01 14:08:53 UTC) #35
alex clarke (OOO till 29th)
Thanks I've addressed your feebback. Does this look better now? https://codereview.chromium.org/2109843003/diff/140001/third_party/WebKit/Source/core/fetch/FetchContext.h File third_party/WebKit/Source/core/fetch/FetchContext.h (right): https://codereview.chromium.org/2109843003/diff/140001/third_party/WebKit/Source/core/fetch/FetchContext.h#newcode117 ...
4 years, 5 months ago (2016-07-01 14:09:14 UTC) #36
alex clarke (OOO till 29th)
Thanks I've addressed your feebback. Does this look better now? https://codereview.chromium.org/2109843003/diff/140001/third_party/WebKit/Source/core/fetch/FetchContext.h File third_party/WebKit/Source/core/fetch/FetchContext.h (right): https://codereview.chromium.org/2109843003/diff/140001/third_party/WebKit/Source/core/fetch/FetchContext.h#newcode117 ...
4 years, 5 months ago (2016-07-01 14:09:14 UTC) #37
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/185128)
4 years, 5 months ago (2016-07-01 14:37:22 UTC) #39
Sami
https://codereview.chromium.org/2109843003/diff/160001/third_party/WebKit/Source/platform/WebViewScheduler.cpp File third_party/WebKit/Source/platform/WebViewScheduler.cpp (right): https://codereview.chromium.org/2109843003/diff/160001/third_party/WebKit/Source/platform/WebViewScheduler.cpp#newcode9 third_party/WebKit/Source/platform/WebViewScheduler.cpp:9: WebViewScheduler::WebViewScheduler() Let's avoid forking WebViewScheduler and WebViewSchedulerImpl like this ...
4 years, 5 months ago (2016-07-01 14:46:30 UTC) #40
pfeldman
https://codereview.chromium.org/2109843003/diff/160001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2109843003/diff/160001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode776 third_party/WebKit/Source/core/inspector/browser_protocol.json:776: "name": "enableVirtualTime", this should either be setVirtualTimeEnabled(bool) or should ...
4 years, 5 months ago (2016-07-01 15:14:13 UTC) #41
alex clarke (OOO till 29th)
PTAL https://codereview.chromium.org/2109843003/diff/160001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2109843003/diff/160001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode776 third_party/WebKit/Source/core/inspector/browser_protocol.json:776: "name": "enableVirtualTime", On 2016/07/01 15:14:13, pfeldman_slow wrote: > ...
4 years, 5 months ago (2016-07-01 15:53:23 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2109843003/180001
4 years, 5 months ago (2016-07-01 15:53:25 UTC) #44
alex clarke (OOO till 29th)
PTAL
4 years, 5 months ago (2016-07-01 15:53:25 UTC) #45
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/256251)
4 years, 5 months ago (2016-07-01 17:30:29 UTC) #47
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2109843003/180001
4 years, 5 months ago (2016-07-01 17:33:06 UTC) #49
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-01 18:56:46 UTC) #51
Sami
lgtm. https://codereview.chromium.org/2109843003/diff/180001/components/scheduler/renderer/web_view_scheduler_impl_unittest.cc File components/scheduler/renderer/web_view_scheduler_impl_unittest.cc (right): https://codereview.chromium.org/2109843003/diff/180001/components/scheduler/renderer/web_view_scheduler_impl_unittest.cc#newcode340 components/scheduler/renderer/web_view_scheduler_impl_unittest.cc:340: blink::WebViewScheduler::VirtualTimePolicy::PAUSE); nit: no need for the namespace prefix ...
4 years, 5 months ago (2016-07-05 10:26:55 UTC) #52
alex clarke (OOO till 29th)
https://codereview.chromium.org/2109843003/diff/180001/components/scheduler/renderer/web_view_scheduler_impl_unittest.cc File components/scheduler/renderer/web_view_scheduler_impl_unittest.cc (right): https://codereview.chromium.org/2109843003/diff/180001/components/scheduler/renderer/web_view_scheduler_impl_unittest.cc#newcode340 components/scheduler/renderer/web_view_scheduler_impl_unittest.cc:340: blink::WebViewScheduler::VirtualTimePolicy::PAUSE); On 2016/07/05 10:26:55, Sami wrote: > nit: no ...
4 years, 5 months ago (2016-07-05 13:08:13 UTC) #54
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2109843003/200001
4 years, 5 months ago (2016-07-05 13:08:16 UTC) #55
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-05 14:40:28 UTC) #57
dgozman
Sorry for delay, got holidays here. https://codereview.chromium.org/2109843003/diff/200001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2109843003/diff/200001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode682 third_party/WebKit/Source/core/inspector/browser_protocol.json:682: "description": "For a ...
4 years, 5 months ago (2016-07-05 15:30:35 UTC) #58
alex clarke (OOO till 29th)
https://codereview.chromium.org/2109843003/diff/200001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2109843003/diff/200001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode682 third_party/WebKit/Source/core/inspector/browser_protocol.json:682: "description": "For a description of the virtual time policies ...
4 years, 5 months ago (2016-07-05 16:51:23 UTC) #59
dcheng
https://codereview.chromium.org/2109843003/diff/200001/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp File third_party/WebKit/Source/web/InspectorEmulationAgent.cpp (right): https://codereview.chromium.org/2109843003/diff/200001/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp#newcode98 third_party/WebKit/Source/web/InspectorEmulationAgent.cpp:98: for (WebLocalFrame* frame = m_webLocalFrameImpl; frame; frame = frame->traverseNextLocal(false)) ...
4 years, 5 months ago (2016-07-06 01:09:49 UTC) #61
alex clarke (OOO till 29th)
https://codereview.chromium.org/2109843003/diff/200001/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp File third_party/WebKit/Source/web/InspectorEmulationAgent.cpp (right): https://codereview.chromium.org/2109843003/diff/200001/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp#newcode98 third_party/WebKit/Source/web/InspectorEmulationAgent.cpp:98: for (WebLocalFrame* frame = m_webLocalFrameImpl; frame; frame = frame->traverseNextLocal(false)) ...
4 years, 5 months ago (2016-07-06 09:23:25 UTC) #62
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2109843003/240001
4 years, 5 months ago (2016-07-06 09:23:40 UTC) #64
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-06 12:04:41 UTC) #66
dgozman
lgtm
4 years, 5 months ago (2016-07-06 16:50:11 UTC) #67
alex clarke (OOO till 29th)
Thanks for the review :)
4 years, 5 months ago (2016-07-06 16:52:59 UTC) #68
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2109843003/240001
4 years, 5 months ago (2016-07-06 16:53:42 UTC) #71
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/212856)
4 years, 5 months ago (2016-07-06 17:02:26 UTC) #73
alex clarke (OOO till 29th)
+jochen Can I please get an OWNERS review for platform/ ?
4 years, 5 months ago (2016-07-06 17:05:13 UTC) #75
pfeldman
platform lgtm
4 years, 5 months ago (2016-07-06 17:40:34 UTC) #76
alex clarke (OOO till 29th)
Thanks!
4 years, 5 months ago (2016-07-06 19:39:43 UTC) #77
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2109843003/240001
4 years, 5 months ago (2016-07-06 19:40:34 UTC) #79
commit-bot: I haz the power
Committed patchset #11 (id:240001)
4 years, 5 months ago (2016-07-06 19:46:57 UTC) #81
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-06 19:47:01 UTC) #82
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/9599120a7c4d3532a0aaeed18b81ed6e9892381c Cr-Commit-Position: refs/heads/master@{#403943}
4 years, 5 months ago (2016-07-06 19:48:31 UTC) #84
falken
On 2016/07/06 19:48:31, commit-bot: I haz the power wrote: > Patchset 11 (id:??) landed as ...
4 years, 5 months ago (2016-07-07 05:32:03 UTC) #85
falken
Filed https://bugs.chromium.org/p/chromium/issues/detail?id=626218
4 years, 5 months ago (2016-07-07 05:41:29 UTC) #86
vinodsonkusare77_gmail.com
https://youtu.be/s2mEASqcipA?list=UUWQUZfAdokV83KKjLl-sDeQ On Thu, Jul 7, 2016 at 11:11 AM, <falken@chromium.org> wrote: > Filed https://bugs.chromium.org/p/chromium/issues/detail?id=626218 > ...
4 years, 4 months ago (2016-08-17 10:11:08 UTC) #87
vinodsonkusare77_gmail.com
4 years, 4 months ago (2016-08-17 10:11:08 UTC) #88
Message was sent while issue was closed.
https://youtu.be/s2mEASqcipA?list=UUWQUZfAdokV83KKjLl-sDeQ

On Thu, Jul 7, 2016 at 11:11 AM, <falken@chromium.org> wrote:

> Filed https://bugs.chromium.org/p/chromium/issues/detail?id=626218
>
> https://codereview.chromium.org/2109843003/
>
> --
> You received this message because you are subscribed to the Google Groups
> "DevTools Reviews" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to devtools-reviews+unsubscribe@chromium.org.
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698