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

Issue 1127383009: Create histograms to track time-to-error values for different errors. (Closed)

Created:
5 years, 7 months ago by Randy Smith (Not in Mondays)
Modified:
5 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create histograms to track time-to-error values for different errors. This is only done for main frame loads (so that it matches the behavior of Net.ErrorCodesForMainFrame3), and is done for the dominant errors seen in the wild. It also includes successful loads (for comparison) and all non-dominant errors in a final bucket (for completeness). BUG=487663 R=mmenke@chromium.org R=jkarlin@chromium.org Committed: https://crrev.com/8b7c064122b1d0a28718672a44bcaea99f0d4d91 Cr-Commit-Position: refs/heads/master@{#329858}

Patch Set 1 #

Patch Set 2 : Merged to revision p329442. #

Total comments: 10

Patch Set 3 : Incorporated comments. #

Total comments: 2

Patch Set 4 : Added Connection Timed Out to error list. #

Total comments: 2

Patch Set 5 : Add name not resolved to histograms.xml. #

Total comments: 3

Patch Set 6 : Used histogram suffixes. #

Patch Set 7 : Shifted separator to '.' #

Total comments: 2

Patch Set 8 : Switched header file. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -1 line) Patch
M content/browser/loader/resource_dispatcher_host_impl.cc View 1 2 3 4 5 6 7 2 chunks +41 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (7 generated)
Randy Smith (Not in Mondays)
Josh: Could you review this with an eye for how useful these histograms are for ...
5 years, 7 months ago (2015-05-12 18:11:52 UTC) #1
mmenke
https://codereview.chromium.org/1127383009/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1127383009/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode867 content/browser/loader/resource_dispatcher_host_impl.cc:867: // the aggregate remainder errors. High level question: What's ...
5 years, 7 months ago (2015-05-12 18:23:26 UTC) #2
jkarlin
lgtm https://codereview.chromium.org/1127383009/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1127383009/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode890 content/browser/loader/resource_dispatcher_host_impl.cc:890: break; Perhaps ERR_CONNECTION_REFUSED, ERR_CONNECTION_TIMED_OUT, and ERR_NAME_NOT_RESOLVED as well? ...
5 years, 7 months ago (2015-05-12 18:26:07 UTC) #3
Randy Smith (Not in Mondays)
On 2015/05/12 18:23:26, mmenke wrote: > https://codereview.chromium.org/1127383009/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc > File content/browser/loader/resource_dispatcher_host_impl.cc (right): > > https://codereview.chromium.org/1127383009/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode867 > ...
5 years, 7 months ago (2015-05-12 18:32:21 UTC) #4
Randy Smith (Not in Mondays)
On 2015/05/12 18:32:21, rdsmith wrote: > On 2015/05/12 18:23:26, mmenke wrote: > > > https://codereview.chromium.org/1127383009/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc ...
5 years, 7 months ago (2015-05-12 18:33:00 UTC) #5
mmenke
On 2015/05/12 18:33:00, rdsmith wrote: > On 2015/05/12 18:32:21, rdsmith wrote: > > These all ...
5 years, 7 months ago (2015-05-12 19:51:10 UTC) #6
Randy Smith (Not in Mondays)
Next round. Josh, Matt: PTAL? https://codereview.chromium.org/1127383009/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1127383009/diff/20001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode867 content/browser/loader/resource_dispatcher_host_impl.cc:867: // the aggregate remainder ...
5 years, 7 months ago (2015-05-12 20:51:39 UTC) #7
mmenke
https://codereview.chromium.org/1127383009/diff/40001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1127383009/diff/40001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode891 content/browser/loader/resource_dispatcher_host_impl.cc:891: case net::ERR_TIMED_OUT: Josh was right about ERR_CONNECTION_TIMED_OUT - TIMED_OUT ...
5 years, 7 months ago (2015-05-12 20:57:00 UTC) #8
mmenke
https://codereview.chromium.org/1127383009/diff/40001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1127383009/diff/40001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode891 content/browser/loader/resource_dispatcher_host_impl.cc:891: case net::ERR_TIMED_OUT: On 2015/05/12 20:57:00, mmenke wrote: > Josh ...
5 years, 7 months ago (2015-05-12 20:58:16 UTC) #9
Randy Smith (Not in Mondays)
So I've added CONNECTION_TIMED_OUT, but in all the stats I'm looking at (which are mobile ...
5 years, 7 months ago (2015-05-13 15:27:25 UTC) #10
mmenke
On 2015/05/13 15:27:25, rdsmith wrote: > So I've added CONNECTION_TIMED_OUT, but in all the stats ...
5 years, 7 months ago (2015-05-13 15:39:40 UTC) #11
mmenke
On 2015/05/13 15:39:40, mmenke wrote: > On 2015/05/13 15:27:25, rdsmith wrote: > > So I've ...
5 years, 7 months ago (2015-05-13 15:40:17 UTC) #12
Randy Smith (Not in Mondays)
On 2015/05/13 15:39:40, mmenke wrote: > On 2015/05/13 15:27:25, rdsmith wrote: > > So I've ...
5 years, 7 months ago (2015-05-13 16:24:39 UTC) #13
jkarlin
https://codereview.chromium.org/1127383009/diff/60001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1127383009/diff/60001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode893 content/browser/loader/resource_dispatcher_host_impl.cc:893: "Net.RequestTime.ErrNameNotResolved", request_loading_time); This doesn't have corresponding xml data.
5 years, 7 months ago (2015-05-13 16:26:57 UTC) #14
Randy Smith (Not in Mondays)
https://codereview.chromium.org/1127383009/diff/60001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1127383009/diff/60001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode893 content/browser/loader/resource_dispatcher_host_impl.cc:893: "Net.RequestTime.ErrNameNotResolved", request_loading_time); On 2015/05/13 16:26:57, jkarlin wrote: > This ...
5 years, 7 months ago (2015-05-13 16:37:58 UTC) #15
mmenke
nit: In description, dominate errors -> dominant errors. LGTM
5 years, 7 months ago (2015-05-13 16:39:27 UTC) #16
mmenke
On 2015/05/13 16:39:27, mmenke wrote: > nit: In description, dominate errors -> dominant errors. > ...
5 years, 7 months ago (2015-05-13 16:39:47 UTC) #17
Randy Smith (Not in Mondays)
On 2015/05/13 16:39:47, mmenke wrote: > On 2015/05/13 16:39:27, mmenke wrote: > > nit: In ...
5 years, 7 months ago (2015-05-13 16:43:12 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1127383009/80001
5 years, 7 months ago (2015-05-13 16:43:42 UTC) #22
Randy Smith (Not in Mondays)
Alexei: Could you take a look at histograms.xml?
5 years, 7 months ago (2015-05-13 16:44:09 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/63357)
5 years, 7 months ago (2015-05-13 16:51:58 UTC) #26
Alexei Svitkine (slow)
https://codereview.chromium.org/1127383009/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1127383009/diff/80001/tools/metrics/histograms/histograms.xml#newcode21158 tools/metrics/histograms/histograms.xml:21158: +<histogram name="Net.RequestTime.ErrAborted"> You can use the histogram_suffixes feature to ...
5 years, 7 months ago (2015-05-13 16:55:30 UTC) #27
Randy Smith (Not in Mondays)
Alexei: PTAL? Matt: Note that I'm now using "_" instead of "." as the separator ...
5 years, 7 months ago (2015-05-13 18:29:56 UTC) #28
Alexei Svitkine (slow)
https://codereview.chromium.org/1127383009/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1127383009/diff/80001/tools/metrics/histograms/histograms.xml#newcode21158 tools/metrics/histograms/histograms.xml:21158: +<histogram name="Net.RequestTime.ErrAborted"> On 2015/05/13 18:29:56, rdsmith wrote: > On ...
5 years, 7 months ago (2015-05-13 18:46:18 UTC) #29
Randy Smith (Not in Mondays)
On 2015/05/13 18:46:18, Alexei Svitkine wrote: > https://codereview.chromium.org/1127383009/diff/80001/tools/metrics/histograms/histograms.xml > File tools/metrics/histograms/histograms.xml (right): > > https://codereview.chromium.org/1127383009/diff/80001/tools/metrics/histograms/histograms.xml#newcode21158 ...
5 years, 7 months ago (2015-05-13 18:47:29 UTC) #30
Randy Smith (Not in Mondays)
New PS uploaded. PTAL.
5 years, 7 months ago (2015-05-13 18:50:04 UTC) #31
Alexei Svitkine (slow)
lgtm % nit https://codereview.chromium.org/1127383009/diff/120001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1127383009/diff/120001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode22 content/browser/loader/resource_dispatcher_host_impl.cc:22: #include "base/metrics/histogram.h" Nit: Can you switch ...
5 years, 7 months ago (2015-05-14 14:56:04 UTC) #32
Randy Smith (Not in Mondays)
Thanks! https://codereview.chromium.org/1127383009/diff/120001/content/browser/loader/resource_dispatcher_host_impl.cc File content/browser/loader/resource_dispatcher_host_impl.cc (right): https://codereview.chromium.org/1127383009/diff/120001/content/browser/loader/resource_dispatcher_host_impl.cc#newcode22 content/browser/loader/resource_dispatcher_host_impl.cc:22: #include "base/metrics/histogram.h" On 2015/05/14 14:56:04, Alexei Svitkine wrote: ...
5 years, 7 months ago (2015-05-14 15:21:29 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1127383009/140001
5 years, 7 months ago (2015-05-14 15:22:05 UTC) #36
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 7 months ago (2015-05-14 16:36:54 UTC) #37
commit-bot: I haz the power
5 years, 7 months ago (2015-05-14 16:38:15 UTC) #38
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/8b7c064122b1d0a28718672a44bcaea99f0d4d91
Cr-Commit-Position: refs/heads/master@{#329858}

Powered by Google App Engine
This is Rietveld 408576698