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

Issue 429393003: Send idle notifications to V8 after commit (Closed)

Created:
6 years, 4 months ago by ernstm
Modified:
6 years, 3 months ago
CC:
chromium-reviews, creis+watch_chromium.org, nkostylev+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, oshima+watch_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Send idle notifications to V8 after commit Send idle notifications for V8 to do garbage collection after the commit. Behind a flag until V8 side of implementation is complete and tested. R=brianderson@chromium.org,skyostil@chromium.org,hpayer@chromium.org,danakj@chromium.org BUG= Committed: https://crrev.com/50aec929542bb04f2c80ef4d3a1f5d3efe07750e Cr-Commit-Position: refs/heads/master@{#291995}

Patch Set 1 #

Patch Set 2 : comment #

Patch Set 3 : Call idle notification from RenderWidgetCompositor. #

Total comments: 5

Patch Set 4 : Don't store flag in settings. #

Patch Set 5 : Move flag from cc:switches to content switches. #

Total comments: 2

Patch Set 6 : idle_time_for_gc -> idle_time_in_ms #

Total comments: 9

Patch Set 7 : Clean-ups. #

Total comments: 4

Patch Set 8 : Clean-ups. #

Patch Set 9 : rebase #

Total comments: 4

Patch Set 10 : Improve comments. #

Patch Set 11 : . #

Total comments: 2

Patch Set 12 : Avoid 64-bit division. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -1 line) Patch
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +21 lines, -1 line 0 comments Download

Messages

Total messages: 28 (0 generated)
ernstm
In order to implement and test the V8 side of idle notifications for micro garbage ...
6 years, 4 months ago (2014-08-01 08:30:15 UTC) #1
jamesr
On 2014/08/01 08:30:15, ernstm wrote: > In order to implement and test the V8 side ...
6 years, 4 months ago (2014-08-07 17:31:26 UTC) #2
Sami
I've got a WIP patch that communicates more BeginFrame timing information from cc to content, ...
6 years, 4 months ago (2014-08-08 11:14:27 UTC) #3
ernstm
On 2014/08/08 11:14:27, Sami wrote: > I've got a WIP patch that communicates more BeginFrame ...
6 years, 4 months ago (2014-08-18 23:17:19 UTC) #4
jamesr
https://codereview.chromium.org/429393003/diff/40001/cc/base/switches.cc File cc/base/switches.cc (right): https://codereview.chromium.org/429393003/diff/40001/cc/base/switches.cc#newcode125 cc/base/switches.cc:125: "send-v8-idle-notification-after-commit"; this switch doesn't influence any behavior in cc/, ...
6 years, 4 months ago (2014-08-18 23:23:49 UTC) #5
ernstm
https://codereview.chromium.org/429393003/diff/40001/cc/base/switches.cc File cc/base/switches.cc (right): https://codereview.chromium.org/429393003/diff/40001/cc/base/switches.cc#newcode125 cc/base/switches.cc:125: "send-v8-idle-notification-after-commit"; On 2014/08/18 23:23:49, jamesr wrote: > this switch ...
6 years, 4 months ago (2014-08-18 23:46:34 UTC) #6
Hannes Payer (out of office)
https://codereview.chromium.org/429393003/diff/80001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/429393003/diff/80001/content/renderer/gpu/render_widget_compositor.cc#newcode792 content/renderer/gpu/render_widget_compositor.cc:792: int idle_time_for_gc = Let's rename that variable to idle_time_in_ms. ...
6 years, 4 months ago (2014-08-19 07:34:37 UTC) #7
ernstm
https://codereview.chromium.org/429393003/diff/80001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/429393003/diff/80001/content/renderer/gpu/render_widget_compositor.cc#newcode792 content/renderer/gpu/render_widget_compositor.cc:792: int idle_time_for_gc = On 2014/08/19 07:34:36, Hannes Payer wrote: ...
6 years, 4 months ago (2014-08-19 22:09:24 UTC) #8
Hannes Payer (out of office)
Awesome stuff, LGTM.
6 years, 4 months ago (2014-08-20 11:27:09 UTC) #9
ernstm
On 2014/08/20 11:27:09, Hannes Payer wrote: > Awesome stuff, LGTM. James, are you okay with ...
6 years, 4 months ago (2014-08-20 16:48:44 UTC) #10
jamesr
https://codereview.chromium.org/429393003/diff/100001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/429393003/diff/100001/content/renderer/gpu/render_widget_compositor.cc#newcode791 content/renderer/gpu/render_widget_compositor.cc:791: if (cmd->HasSwitch(switches::kSendV8IdleNotificationAfterCommit)) { grab this value once and stash ...
6 years, 4 months ago (2014-08-20 19:38:42 UTC) #11
brianderson
https://codereview.chromium.org/429393003/diff/100001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/429393003/diff/100001/content/renderer/gpu/render_widget_compositor.cc#newcode795 content/renderer/gpu/render_widget_compositor.cc:795: base::TimeTicks::HighResNow()).InMilliseconds()); On 2014/08/20 19:38:41, jamesr wrote: > i was ...
6 years, 4 months ago (2014-08-20 20:07:48 UTC) #12
ernstm
https://codereview.chromium.org/429393003/diff/100001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/429393003/diff/100001/content/renderer/gpu/render_widget_compositor.cc#newcode791 content/renderer/gpu/render_widget_compositor.cc:791: if (cmd->HasSwitch(switches::kSendV8IdleNotificationAfterCommit)) { On 2014/08/20 19:38:41, jamesr wrote: > ...
6 years, 4 months ago (2014-08-21 18:22:00 UTC) #13
ernstm
On 2014/08/21 18:22:00, ernstm wrote: > https://codereview.chromium.org/429393003/diff/100001/content/renderer/gpu/render_widget_compositor.cc > File content/renderer/gpu/render_widget_compositor.cc (right): > > https://codereview.chromium.org/429393003/diff/100001/content/renderer/gpu/render_widget_compositor.cc#newcode791 > ...
6 years, 4 months ago (2014-08-25 17:39:46 UTC) #14
jamesr
On 2014/08/21 18:22:00, ernstm wrote: > https://codereview.chromium.org/429393003/diff/100001/content/renderer/gpu/render_widget_compositor.cc#newcode797 > content/renderer/gpu/render_widget_compositor.cc:797: > blink::mainThreadIsolate()->IdleNotification(idle_time_in_ms); > On 2014/08/20 19:38:41, ...
6 years, 4 months ago (2014-08-25 18:01:48 UTC) #15
jamesr
content/renderer/ lgtm, but please work with the V8 folks to improve the idle API. Targetting ...
6 years, 4 months ago (2014-08-25 18:06:26 UTC) #16
ernstm
The idle notification was recently moved to the isolate: https://codereview.chromium.org/412163003/. Let's discuss with Jochen and ...
6 years, 4 months ago (2014-08-25 18:25:11 UTC) #17
jamesr
On 2014/08/25 18:25:11, ernstm wrote: > https://codereview.chromium.org/429393003/diff/120001/content/renderer/gpu/render_widget_compositor.cc#newcode168 > content/renderer/gpu/render_widget_compositor.cc:168: > compositor->send_v8_idle_notification_after_commit_ = true; > On ...
6 years, 4 months ago (2014-08-25 18:29:14 UTC) #18
ernstm
ernstm@chromium.org changed reviewers: + brettw@chromium.org
6 years, 3 months ago (2014-08-26 16:49:28 UTC) #19
ernstm
On 2014/08/26 16:49:28, ernstm wrote: > mailto:ernstm@chromium.org changed reviewers: > + mailto:brettw@chromium.org Brett, could you ...
6 years, 3 months ago (2014-08-26 16:50:16 UTC) #20
brettw
lgtm https://codereview.chromium.org/429393003/diff/160001/content/public/common/content_switches.cc File content/public/common/content_switches.cc (right): https://codereview.chromium.org/429393003/diff/160001/content/public/common/content_switches.cc#newcode688 content/public/common/content_switches.cc:688: // Send idle notifications to V8 after commit. ...
6 years, 3 months ago (2014-08-26 17:48:46 UTC) #21
ernstm
https://codereview.chromium.org/429393003/diff/160001/content/public/common/content_switches.cc File content/public/common/content_switches.cc (right): https://codereview.chromium.org/429393003/diff/160001/content/public/common/content_switches.cc#newcode688 content/public/common/content_switches.cc:688: // Send idle notifications to V8 after commit. On ...
6 years, 3 months ago (2014-08-26 18:44:08 UTC) #22
brianderson
lgtm, just one nit regarding 64-bit division. https://codereview.chromium.org/429393003/diff/200001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/429393003/diff/200001/content/renderer/gpu/render_widget_compositor.cc#newcode793 content/renderer/gpu/render_widget_compositor.cc:793: gfx::FrameTime::Now()).InMilliseconds()); InMilliseconds() ...
6 years, 3 months ago (2014-08-26 19:05:41 UTC) #23
ernstm
https://codereview.chromium.org/429393003/diff/200001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/429393003/diff/200001/content/renderer/gpu/render_widget_compositor.cc#newcode793 content/renderer/gpu/render_widget_compositor.cc:793: gfx::FrameTime::Now()).InMilliseconds()); On 2014/08/26 19:05:41, brianderson wrote: > InMilliseconds() uses ...
6 years, 3 months ago (2014-08-26 20:05:25 UTC) #24
ernstm
The CQ bit was checked by ernstm@chromium.org
6 years, 3 months ago (2014-08-26 20:36:05 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ernstm@chromium.org/429393003/220001
6 years, 3 months ago (2014-08-26 20:37:40 UTC) #26
commit-bot: I haz the power
Committed patchset #12 (220001) as 32505dba1054184c41c0441637e5cc2c58c0f572
6 years, 3 months ago (2014-08-26 22:16:19 UTC) #27
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:46:05 UTC) #28
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/50aec929542bb04f2c80ef4d3a1f5d3efe07750e
Cr-Commit-Position: refs/heads/master@{#291995}

Powered by Google App Engine
This is Rietveld 408576698