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

Issue 7740070: Add metrics to measure time elapsed between form load and form submission with or without Autofill. (Closed)

Created:
9 years, 3 months ago by Ilya Sherman
Modified:
9 years, 3 months ago
CC:
chromium-reviews, GeorgeY, brettw-cc_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., dhollowa
Visibility:
Public.

Description

Add metrics to measure time elapsed between form load and form submission with or without Autofill. BUG=none TEST=unit_tests --gtest_filter=AutofillMetricsTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99447

Patch Set 1 #

Patch Set 2 : A bit o' cleanup #

Patch Set 3 : Fix compile #

Total comments: 8

Patch Set 4 : Serialize in all the right places #

Total comments: 11

Patch Set 5 : Address David's comments #

Patch Set 6 : Add metrics for page load time as well #

Patch Set 7 : Fix tests #

Total comments: 7

Patch Set 8 : Update histograms' dynamic range #

Patch Set 9 : Once more, with feeling #

Unified diffs Side-by-side diffs Delta from patch set Stats (+439 lines, -89 lines) Patch
M base/time.h View 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_manager.h View 1 2 3 4 5 6 chunks +20 lines, -4 lines 0 comments Download
M chrome/browser/autofill/autofill_manager.cc View 1 2 3 4 5 6 7 10 chunks +27 lines, -5 lines 0 comments Download
M chrome/browser/autofill/autofill_manager_unittest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autofill_metrics.h View 1 2 3 4 5 3 chunks +26 lines, -4 lines 0 comments Download
M chrome/browser/autofill/autofill_metrics.cc View 1 2 3 4 5 6 7 8 2 chunks +39 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_metrics_unittest.cc View 1 2 3 4 5 6 25 chunks +167 lines, -27 lines 0 comments Download
M chrome/browser/autofill/autofill_type.cc View 1 2 3 4 5 6 4 chunks +22 lines, -18 lines 0 comments Download
M chrome/browser/autofill/form_structure.h View 1 2 3 4 5 2 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/autofill/form_structure.cc View 1 2 3 4 5 3 chunks +44 lines, -9 lines 0 comments Download
M chrome/common/autofill_messages.h View 1 2 3 4 5 4 chunks +13 lines, -7 lines 0 comments Download
M chrome/renderer/autofill/autofill_agent.cc View 1 2 3 4 5 5 chunks +13 lines, -6 lines 0 comments Download
M chrome/renderer/autofill/form_autocomplete_browsertest.cc View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M ipc/ipc_message_utils.h View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M ipc/ipc_message_utils.cc View 1 2 3 2 chunks +22 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Ilya Sherman
Brett: Please take a look at the base/time.h changes. Jim: Please take a look at ...
9 years, 3 months ago (2011-08-31 01:14:43 UTC) #1
brettw
time LGTM
9 years, 3 months ago (2011-08-31 16:05:03 UTC) #2
jar (doing other things)
The histogram usage LGTM, but .... ...drive by commentary on the rest: The CL's use ...
9 years, 3 months ago (2011-08-31 17:02:21 UTC) #3
Ilya Sherman
http://codereview.chromium.org/7740070/diff/4001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/7740070/diff/4001/chrome/browser/autofill/autofill_manager.cc#newcode798 chrome/browser/autofill/autofill_manager.cc:798: initial_interaction_timestamp_ = TimeTicks::FromInternalValue(0); On 2011/08/31 17:02:21, jar wrote: > ...
9 years, 3 months ago (2011-08-31 21:56:23 UTC) #4
Ilya Sherman
+jam for content/ changes
9 years, 3 months ago (2011-08-31 21:56:45 UTC) #5
Ilya Sherman
On 2011/08/31 21:56:45, Ilya Sherman wrote: > +jam for content/ changes Erm, that is, for ...
9 years, 3 months ago (2011-08-31 21:57:10 UTC) #6
dhollowa
http://codereview.chromium.org/7740070/diff/6001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/7740070/diff/6001/chrome/browser/autofill/autofill_manager.cc#newcode392 chrome/browser/autofill/autofill_manager.cc:392: // Messages might arrive out of order, so always ...
9 years, 3 months ago (2011-08-31 22:40:52 UTC) #7
Ilya Sherman
http://codereview.chromium.org/7740070/diff/6001/chrome/browser/autofill/autofill_manager.cc File chrome/browser/autofill/autofill_manager.cc (right): http://codereview.chromium.org/7740070/diff/6001/chrome/browser/autofill/autofill_manager.cc#newcode392 chrome/browser/autofill/autofill_manager.cc:392: // Messages might arrive out of order, so always ...
9 years, 3 months ago (2011-08-31 23:21:32 UTC) #8
dhollowa
http://codereview.chromium.org/7740070/diff/6001/chrome/browser/autofill/form_structure.cc File chrome/browser/autofill/form_structure.cc (right): http://codereview.chromium.org/7740070/diff/6001/chrome/browser/autofill/form_structure.cc#newcode797 chrome/browser/autofill/form_structure.cc:797: if (!interaction_time.is_null() && !submission_time.is_null() && On 2011/08/31 23:21:32, Ilya ...
9 years, 3 months ago (2011-08-31 23:42:20 UTC) #9
jam
ipc lgtm
9 years, 3 months ago (2011-09-01 01:40:29 UTC) #10
dhollowa
LGTM. Thanks Ilya.
9 years, 3 months ago (2011-09-01 03:52:50 UTC) #11
commit-bot: I haz the power
Try job failure for 7740070-20004 (retry) on win for steps "update_scripts, update". It's a second ...
9 years, 3 months ago (2011-09-02 01:03:39 UTC) #12
jar (doing other things)
http://codereview.chromium.org/7740070/diff/20004/chrome/browser/autofill/autofill_metrics.cc File chrome/browser/autofill/autofill_metrics.cc (right): http://codereview.chromium.org/7740070/diff/20004/chrome/browser/autofill/autofill_metrics.cc#newcode315 chrome/browser/autofill/autofill_metrics.cc:315: UMA_HISTOGRAM_TIMES("Autofill.FillDuration.FromInteraction.WithAutofill", What is the dynamic range you're expecting for ...
9 years, 3 months ago (2011-09-02 01:48:32 UTC) #13
Ilya Sherman
http://codereview.chromium.org/7740070/diff/20004/chrome/browser/autofill/autofill_metrics.cc File chrome/browser/autofill/autofill_metrics.cc (right): http://codereview.chromium.org/7740070/diff/20004/chrome/browser/autofill/autofill_metrics.cc#newcode315 chrome/browser/autofill/autofill_metrics.cc:315: UMA_HISTOGRAM_TIMES("Autofill.FillDuration.FromInteraction.WithAutofill", On 2011/09/02 01:48:33, jar wrote: > What is ...
9 years, 3 months ago (2011-09-02 06:57:53 UTC) #14
jar (doing other things)
9 years, 3 months ago (2011-09-02 20:09:26 UTC) #15
LGTM

http://codereview.chromium.org/7740070/diff/20004/chrome/browser/autofill/aut...
File chrome/browser/autofill/autofill_metrics.cc (right):

http://codereview.chromium.org/7740070/diff/20004/chrome/browser/autofill/aut...
chrome/browser/autofill/autofill_metrics.cc:315:
UMA_HISTOGRAM_TIMES("Autofill.FillDuration.FromInteraction.WithAutofill",
On 2011/09/02 06:57:54, Ilya Sherman wrote:
> On 2011/09/02 01:48:33, jar wrote:
> > What is the dynamic range you're expecting for this?  UMA_HISTOGRAM_TIMES
has
> > its overflow bucket start at 10seconds.  Is that too short?  
> > For instance, UMA_HISTOGRAM_MEDIUM_TIME() runs from 10ms to 3 minutes (and
> > you'll hopefully make very little use of that tail).
> 
> Oh, wow, good catch!  I think 100ms to 10 minutes is probably a reasonable
> dynamic range for this metric -- does my change look correct for that?

Your change to 100ms through 10 minutes looks great.  Thanks.

Powered by Google App Engine
This is Rietveld 408576698