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 10543168: [net/dns] Instrument DnsConfigService to measure performance and failures. (Closed)

Created:
8 years, 6 months ago by szym
Modified:
8 years, 6 months ago
Reviewers:
cbentzel, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, mmenke
Visibility:
Public.

Description

[net/dns] Instrument DnsConfigService to measure performance and failures. BUG=125599 TEST=chrome://histograms Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=143051

Patch Set 1 : . #

Patch Set 2 : Fix android. #

Total comments: 2

Patch Set 3 : Sync + fix sign of NotifyPeriod measurements #

Total comments: 9

Patch Set 4 : Rename histograms and enums. #

Patch Set 5 : Excluding Android. #

Patch Set 6 : Provide stub service for Android. #

Total comments: 18

Patch Set 7 : Responded to review. Record Unchanged{Config,Hosts}Interval. #

Patch Set 8 : Compile fixes. #

Patch Set 9 : Rename HostParseWinResult identifiers. #

Patch Set 10 : Fix compile. #

Patch Set 11 : Record Unchanged*Interval since last withdrawal, not update. #

Patch Set 12 : fix ConfigParseWinResult -> ConfigParseResult #

Patch Set 13 : Fix test expectations on win' #

Total comments: 3

Patch Set 14 : Fix-up comments. #

Patch Set 15 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+348 lines, -205 lines) Patch
M net/base/host_resolver_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -3 lines 0 comments Download
M net/dns/dns_config_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +7 lines, -2 lines 0 comments Download
M net/dns/dns_config_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +27 lines, -0 lines 0 comments Download
M net/dns/dns_config_service_posix.h View 1 2 3 4 5 6 1 chunk +14 lines, -1 line 0 comments Download
M net/dns/dns_config_service_posix.cc View 1 2 3 4 5 6 7 12 chunks +85 lines, -36 lines 0 comments Download
M net/dns/dns_config_service_posix_unittest.cc View 1 2 3 4 5 6 4 chunks +9 lines, -5 lines 0 comments Download
M net/dns/dns_config_service_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M net/dns/dns_config_service_win.h View 1 2 3 4 5 6 1 chunk +17 lines, -1 line 0 comments Download
M net/dns/dns_config_service_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 16 chunks +175 lines, -149 lines 0 comments Download
M net/dns/dns_config_service_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +11 lines, -7 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
szym
8 years, 6 months ago (2012-06-15 03:59:05 UTC) #1
szym
8 years, 6 months ago (2012-06-15 04:02:24 UTC) #2
szym
PTAL. Note that because those measurements are per-event, we really need a way to asses ...
8 years, 6 months ago (2012-06-15 19:25:27 UTC) #3
cbentzel
Some quick thoughts, will review the Win portion soon. http://codereview.chromium.org/10543168/diff/10009/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/10543168/diff/10009/net/base/host_resolver_impl.cc#newcode1358 net/base/host_resolver_impl.cc:1358: ...
8 years, 6 months ago (2012-06-15 20:29:36 UTC) #4
szym
http://codereview.chromium.org/10543168/diff/10009/net/base/host_resolver_impl.cc File net/base/host_resolver_impl.cc (right): http://codereview.chromium.org/10543168/diff/10009/net/base/host_resolver_impl.cc#newcode1358 net/base/host_resolver_impl.cc:1358: UMA_HISTOGRAM_BOOLEAN("AsyncDNS.HaveDnsConfig", On 2012/06/15 20:29:36, cbentzel wrote: > Does this ...
8 years, 6 months ago (2012-06-15 21:22:19 UTC) #5
szym
This still needs some work. A potential problem with the measurement of AsyncDNS.ConfigChange is that ...
8 years, 6 months ago (2012-06-15 23:48:17 UTC) #6
cbentzel
LGTM http://codereview.chromium.org/10543168/diff/29003/net/dns/dns_config_service_win.cc File net/dns/dns_config_service_win.cc (right): http://codereview.chromium.org/10543168/diff/29003/net/dns/dns_config_service_win.cc#newcode243 net/dns/dns_config_service_win.cc:243: bool AddLocalhostEntries(DnsHosts* phosts) { Nit: We don't tend ...
8 years, 6 months ago (2012-06-16 18:03:40 UTC) #7
mmenke
http://codereview.chromium.org/10543168/diff/29003/net/dns/dns_config_service.h File net/dns/dns_config_service.h (right): http://codereview.chromium.org/10543168/diff/29003/net/dns/dns_config_service.h#newcode142 net/dns/dns_config_service.h:142: base::TimeTicks last_invalidate_hosts_time_; This it's worth a comment that these ...
8 years, 6 months ago (2012-06-18 17:19:50 UTC) #8
cbentzel
http://codereview.chromium.org/10543168/diff/29003/net/dns/dns_config_service_win.cc File net/dns/dns_config_service_win.cc (right): http://codereview.chromium.org/10543168/diff/29003/net/dns/dns_config_service_win.cc#newcode243 net/dns/dns_config_service_win.cc:243: bool AddLocalhostEntries(DnsHosts* phosts) { On 2012/06/18 17:19:50, Matt Menke ...
8 years, 6 months ago (2012-06-18 18:37:17 UTC) #9
mmenke
http://codereview.chromium.org/10543168/diff/29003/net/dns/dns_config_service_win.cc File net/dns/dns_config_service_win.cc (right): http://codereview.chromium.org/10543168/diff/29003/net/dns/dns_config_service_win.cc#newcode243 net/dns/dns_config_service_win.cc:243: bool AddLocalhostEntries(DnsHosts* phosts) { On 2012/06/18 18:37:17, cbentzel wrote: ...
8 years, 6 months ago (2012-06-18 18:46:26 UTC) #10
szym
Thanks for the review. I applied suggested changes and added Unchanged*Interval, which is measured from ...
8 years, 6 months ago (2012-06-18 20:53:08 UTC) #11
mmenke
I'll give it another pass tonight or tomorrow morning. http://codereview.chromium.org/10543168/diff/29003/net/dns/dns_config_service_posix.cc File net/dns/dns_config_service_posix.cc (right): http://codereview.chromium.org/10543168/diff/29003/net/dns/dns_config_service_posix.cc#newcode86 net/dns/dns_config_service_posix.cc:86: ...
8 years, 6 months ago (2012-06-18 20:55:56 UTC) #12
szym
http://codereview.chromium.org/10543168/diff/29003/net/dns/dns_config_service_posix.cc File net/dns/dns_config_service_posix.cc (right): http://codereview.chromium.org/10543168/diff/29003/net/dns/dns_config_service_posix.cc#newcode86 net/dns/dns_config_service_posix.cc:86: UMA_HISTOGRAM_BOOLEAN("AsyncDNS.ConfigParseResult", success_); On 2012/06/18 20:55:56, Matt Menke wrote: > ...
8 years, 6 months ago (2012-06-18 20:59:55 UTC) #13
mmenke
LGTM http://codereview.chromium.org/10543168/diff/32013/net/dns/dns_config_service.h File net/dns/dns_config_service.h (right): http://codereview.chromium.org/10543168/diff/32013/net/dns/dns_config_service.h#newcode106 net/dns/dns_config_service.h:106: friend class DnsHostsReader; While you're here, might as ...
8 years, 6 months ago (2012-06-19 14:49:15 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/szym@chromium.org/10543168/34021
8 years, 6 months ago (2012-06-19 18:52:26 UTC) #15
commit-bot: I haz the power
8 years, 6 months ago (2012-06-19 20:48:26 UTC) #16
Failed to apply patch for net/dns/dns_config_service.cc:
While running patch -p1 --forward --force;
patching file net/dns/dns_config_service.cc
Hunk #1 FAILED at 5.
Hunk #2 succeeded at 152 (offset 48 lines).
Hunk #3 succeeded at 166 (offset 48 lines).
Hunk #4 succeeded at 182 (offset 48 lines).
Hunk #5 succeeded at 202 (offset 48 lines).
Hunk #6 succeeded at 252 (offset 48 lines).
1 out of 6 hunks FAILED -- saving rejects to file
net/dns/dns_config_service.cc.rej

Powered by Google App Engine
This is Rietveld 408576698