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

Issue 1683583002: Report user actions when gesture starts and stops in user_model.

Created:
4 years, 10 months ago by beaudoin
Modified:
4 years, 7 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org, asvitkine+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, scheduler-bugs_chromium.org, Ilya Sherman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Report user actions when gesture starts and stops in user_model. This will makes it possible to build and validate a model for time-to-next gesture. BUG=595431

Patch Set 1 #

Total comments: 14

Patch Set 2 : Answered comments. #

Patch Set 3 : Rebase. #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : Fixed test #

Total comments: 2

Patch Set 6 : Caching feature. #

Total comments: 6

Patch Set 7 : #

Total comments: 2

Patch Set 8 : Fixed nit. #

Total comments: 22

Patch Set 9 : Answered Ilya. #

Patch Set 10 : git cl format #

Patch Set 11 : Added test removed by merging problem. #

Total comments: 6

Patch Set 12 : Rebased, fixed nits. #

Patch Set 13 : Mini fix #

Total comments: 2

Patch Set 14 : Removed cached Feature, answered piman. #

Patch Set 15 : Do not register action callback in single process. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -10 lines) Patch
M components/scheduler/renderer/renderer_scheduler_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
M components/scheduler/renderer/renderer_scheduler_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -5 lines 0 comments Download
M components/scheduler/renderer/user_model.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +14 lines, -1 line 0 comments Download
M components/scheduler/renderer/user_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +33 lines, -2 lines 0 comments Download
M components/scheduler/renderer/user_model_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +50 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +9 lines, -0 lines 0 comments Download
M tools/metrics/actions/actions.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 56 (11 generated)
beaudoin
Following up on discussion on uma-users@ please let me know if this makes sense.
4 years, 10 months ago (2016-02-09 03:51:07 UTC) #2
Ilya Sherman
This seems pretty reasonable to me! I'm not actually sure about the frequency of the ...
4 years, 10 months ago (2016-02-09 22:03:25 UTC) #4
alex clarke (OOO till 29th)
https://codereview.chromium.org/1683583002/diff/1/components/scheduler/renderer/user_model.cc File components/scheduler/renderer/user_model.cc (right): https://codereview.chromium.org/1683583002/diff/1/components/scheduler/renderer/user_model.cc#newcode105 components/scheduler/renderer/user_model.cc:105: // NULL when testing. On 2016/02/09 22:03:25, Ilya Sherman ...
4 years, 10 months ago (2016-02-10 10:17:02 UTC) #5
Sami
https://codereview.chromium.org/1683583002/diff/1/components/scheduler/renderer/user_model.cc File components/scheduler/renderer/user_model.cc (right): https://codereview.chromium.org/1683583002/diff/1/components/scheduler/renderer/user_model.cc#newcode49 components/scheduler/renderer/user_model.cc:49: // NULL when testing. Could you instead pass in ...
4 years, 10 months ago (2016-02-10 10:50:40 UTC) #6
Ilya Sherman
https://codereview.chromium.org/1683583002/diff/1/components/scheduler/renderer/user_model.cc File components/scheduler/renderer/user_model.cc (right): https://codereview.chromium.org/1683583002/diff/1/components/scheduler/renderer/user_model.cc#newcode52 components/scheduler/renderer/user_model.cc:52: base::UserMetricsAction( On 2016/02/10 10:50:40, Sami wrote: > Is there ...
4 years, 10 months ago (2016-02-10 22:43:04 UTC) #7
Sami
Ah right, I forgot about the IPC too. Is there something UMA-based we could do ...
4 years, 10 months ago (2016-02-11 11:52:49 UTC) #8
beaudoin
(Doesn't include a new patch yet, but wanted to send my comments and clarification.) So, ...
4 years, 10 months ago (2016-02-11 15:30:01 UTC) #9
beaudoin
PTAL. (Still in the process of moving this behind a Finch flag.) https://codereview.chromium.org/1683583002/diff/1/components/scheduler/renderer/user_model.cc File components/scheduler/renderer/user_model.cc ...
4 years, 10 months ago (2016-02-11 22:03:28 UTC) #10
Sami
I guess we can compare this against the corresponding UMA metric to see if the ...
4 years, 10 months ago (2016-02-12 12:39:43 UTC) #11
alex clarke (OOO till 29th)
https://codereview.chromium.org/1683583002/diff/40001/components/scheduler/renderer/user_model.h File components/scheduler/renderer/user_model.h (right): https://codereview.chromium.org/1683583002/diff/40001/components/scheduler/renderer/user_model.h#newcode23 components/scheduler/renderer/user_model.h:23: UserModel(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner); nit: explicit and s/task_runner/default_task_runner https://codereview.chromium.org/1683583002/diff/40001/components/scheduler/renderer/user_model_unittest.cc File ...
4 years, 10 months ago (2016-02-12 16:21:50 UTC) #12
beaudoin
PTAL. Sorry this took a while, got sidetracked. The latest CL has a unit test ...
4 years, 9 months ago (2016-03-16 20:47:39 UTC) #14
alex clarke (OOO till 29th)
Thanks for the test. Just the one issue left that I can see. https://codereview.chromium.org/1683583002/diff/80001/components/scheduler/renderer/user_model.cc File ...
4 years, 9 months ago (2016-03-17 17:11:11 UTC) #15
beaudoin
https://codereview.chromium.org/1683583002/diff/80001/components/scheduler/renderer/user_model.cc File components/scheduler/renderer/user_model.cc (right): https://codereview.chromium.org/1683583002/diff/80001/components/scheduler/renderer/user_model.cc#newcode57 components/scheduler/renderer/user_model.cc:57: if (base::FeatureList::IsEnabled(features::kRecordGestureAction)) { On 2016/03/17 17:11:11, alexclarke1 wrote: > ...
4 years, 9 months ago (2016-03-17 17:35:34 UTC) #16
beaudoin
PTAL. (Added the caching.)
4 years, 9 months ago (2016-03-17 19:37:29 UTC) #17
alex clarke (OOO till 29th)
lgtm
4 years, 9 months ago (2016-03-17 19:43:10 UTC) #18
Alexei Svitkine (slow)
https://codereview.chromium.org/1683583002/diff/100001/components/scheduler/renderer/user_model.cc File components/scheduler/renderer/user_model.cc (right): https://codereview.chromium.org/1683583002/diff/100001/components/scheduler/renderer/user_model.cc#newcode33 components/scheduler/renderer/user_model.cc:33: // Enables the recording of gesture as UMA user ...
4 years, 9 months ago (2016-03-17 21:38:46 UTC) #19
beaudoin
Answered Alexei. PTAL. https://codereview.chromium.org/1683583002/diff/100001/components/scheduler/renderer/user_model.cc File components/scheduler/renderer/user_model.cc (right): https://codereview.chromium.org/1683583002/diff/100001/components/scheduler/renderer/user_model.cc#newcode33 components/scheduler/renderer/user_model.cc:33: // Enables the recording of gesture ...
4 years, 9 months ago (2016-03-18 16:08:36 UTC) #20
Alexei Svitkine (slow)
lgtm https://codereview.chromium.org/1683583002/diff/120001/components/scheduler/renderer/user_model.cc File components/scheduler/renderer/user_model.cc (right): https://codereview.chromium.org/1683583002/diff/120001/components/scheduler/renderer/user_model.cc#newcode34 components/scheduler/renderer/user_model.cc:34: // That feature is disabled by default and ...
4 years, 9 months ago (2016-03-18 16:30:37 UTC) #21
beaudoin
https://codereview.chromium.org/1683583002/diff/120001/components/scheduler/renderer/user_model.cc File components/scheduler/renderer/user_model.cc (right): https://codereview.chromium.org/1683583002/diff/120001/components/scheduler/renderer/user_model.cc#newcode34 components/scheduler/renderer/user_model.cc:34: // That feature is disabled by default and controlled ...
4 years, 9 months ago (2016-03-18 16:35:24 UTC) #22
Ilya Sherman
A few comments, though no need to block on my further review once you address ...
4 years, 9 months ago (2016-03-21 08:09:44 UTC) #23
alex clarke (OOO till 29th)
https://codereview.chromium.org/1683583002/diff/140001/components/scheduler/renderer/user_model.cc File components/scheduler/renderer/user_model.cc (right): https://codereview.chromium.org/1683583002/diff/140001/components/scheduler/renderer/user_model.cc#newcode47 components/scheduler/renderer/user_model.cc:47: record_gesture_action_( On 2016/03/21 08:09:43, Ilya Sherman (Away Mar 19-27) ...
4 years, 9 months ago (2016-03-21 09:27:26 UTC) #24
beaudoin
I think this is ready to go. Sami: Should I wait for your LGTM on ...
4 years, 9 months ago (2016-03-23 02:46:42 UTC) #25
beaudoin
R+kinuko for content/renderer/render_thread_impl.*
4 years, 9 months ago (2016-03-23 02:51:19 UTC) #27
Sami
lgtm with some nits. https://codereview.chromium.org/1683583002/diff/200001/components/scheduler/renderer/renderer_scheduler_impl.h File components/scheduler/renderer/renderer_scheduler_impl.h (right): https://codereview.chromium.org/1683583002/diff/200001/components/scheduler/renderer/renderer_scheduler_impl.h#newcode349 components/scheduler/renderer/renderer_scheduler_impl.h:349: const scoped_refptr<base::SingleThreadTaskRunner>& default_task_runner); nit: no ...
4 years, 9 months ago (2016-03-23 11:33:16 UTC) #28
beaudoin
https://codereview.chromium.org/1683583002/diff/200001/components/scheduler/renderer/renderer_scheduler_impl.h File components/scheduler/renderer/renderer_scheduler_impl.h (right): https://codereview.chromium.org/1683583002/diff/200001/components/scheduler/renderer/renderer_scheduler_impl.h#newcode349 components/scheduler/renderer/renderer_scheduler_impl.h:349: const scoped_refptr<base::SingleThreadTaskRunner>& default_task_runner); On 2016/03/23 11:33:16, Sami (OoO) wrote: ...
4 years, 9 months ago (2016-03-23 18:43:22 UTC) #29
beaudoin
R+piman-kinuko-isherman CC+isherman piman: Can you review content/renderer/render_thread_impl.* ? I was hoping to land this today.
4 years, 9 months ago (2016-03-23 18:47:02 UTC) #31
piman
https://codereview.chromium.org/1683583002/diff/240001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/1683583002/diff/240001/content/renderer/render_thread_impl.cc#newcode866 content/renderer/render_thread_impl.cc:866: base::RemoveActionCallback(action_callback_); Should this be in Shutdown for consistency?
4 years, 9 months ago (2016-03-23 19:48:09 UTC) #32
Ilya Sherman
LGTM % quibbles https://codereview.chromium.org/1683583002/diff/140001/components/scheduler/renderer/user_model.cc File components/scheduler/renderer/user_model.cc (right): https://codereview.chromium.org/1683583002/diff/140001/components/scheduler/renderer/user_model.cc#newcode47 components/scheduler/renderer/user_model.cc:47: record_gesture_action_( On 2016/03/23 02:46:41, beaudoin wrote: ...
4 years, 9 months ago (2016-03-24 05:02:35 UTC) #34
beaudoin
Alex/Sami: What's your take on the Ilya's "premature opimization" comment? https://codereview.chromium.org/1683583002/diff/140001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/1683583002/diff/140001/content/renderer/render_thread_impl.cc#newcode637 ...
4 years, 9 months ago (2016-03-24 21:08:55 UTC) #35
alex clarke (OOO till 29th)
On 2016/03/24 21:08:55, beaudoin wrote: > Alex/Sami: What's your take on the Ilya's "premature opimization" ...
4 years, 8 months ago (2016-03-28 15:11:51 UTC) #36
beaudoin
piman: PTAL. https://codereview.chromium.org/1683583002/diff/240001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/1683583002/diff/240001/content/renderer/render_thread_impl.cc#newcode866 content/renderer/render_thread_impl.cc:866: base::RemoveActionCallback(action_callback_); On 2016/03/23 19:48:08, piman wrote: > ...
4 years, 8 months ago (2016-03-29 16:09:39 UTC) #37
piman
lgtm
4 years, 8 months ago (2016-03-29 18:38:52 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1683583002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1683583002/260001
4 years, 8 months ago (2016-03-29 19:49:24 UTC) #41
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/136119)
4 years, 8 months ago (2016-03-29 20:14:36 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1683583002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1683583002/280001
4 years, 8 months ago (2016-03-31 23:17:54 UTC) #45
beaudoin
Add/RemoveActionCallback must not be called when Chrome is in single process mode. This is what ...
4 years, 8 months ago (2016-03-31 23:35:47 UTC) #46
beaudoin
On 2016/03/31 23:35:47, beaudoin wrote: > Add/RemoveActionCallback must not be called when Chrome is in ...
4 years, 8 months ago (2016-03-31 23:45:46 UTC) #47
piman
On Thu, Mar 31, 2016 at 4:35 PM, <beaudoin@chromium.org> wrote: > Add/RemoveActionCallback must not be ...
4 years, 8 months ago (2016-03-31 23:57:28 UTC) #48
beaudoin
On 2016/03/31 23:57:28, piman wrote: > On Thu, Mar 31, 2016 at 4:35 PM, <mailto:beaudoin@chromium.org> ...
4 years, 8 months ago (2016-04-01 00:02:53 UTC) #49
piman
On Thu, Mar 31, 2016 at 5:02 PM, <beaudoin@chromium.org> wrote: > On 2016/03/31 23:57:28, piman ...
4 years, 8 months ago (2016-04-01 00:10:55 UTC) #50
beaudoin
On 2016/04/01 00:10:55, piman wrote: > On Thu, Mar 31, 2016 at 5:02 PM, <mailto:beaudoin@chromium.org> ...
4 years, 8 months ago (2016-04-01 00:15:35 UTC) #51
beaudoin
On 2016/04/01 00:15:35, beaudoin wrote: > On 2016/04/01 00:10:55, piman wrote: > > On Thu, ...
4 years, 8 months ago (2016-04-01 00:21:09 UTC) #52
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-01 00:39:33 UTC) #54
Ilya Sherman
Hi, what's the status of this CL?
4 years, 7 months ago (2016-05-17 18:22:59 UTC) #55
beaudoin
4 years, 7 months ago (2016-05-25 15:53:50 UTC) #56
On 2016/05/17 18:22:59, Ilya Sherman wrote:
> Hi, what's the status of this CL?

Just getting to this again using the new approach enabled by this:
https://codereview.chromium.org/1859213002/

Powered by Google App Engine
This is Rietveld 408576698