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

Issue 556094: Add fine grain tracing to HostResolverImpl.... (Closed)

Created:
10 years, 10 months ago by eroman
Modified:
9 years, 6 months ago
CC:
chromium-reviews, darin (slow to review), ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add fine grain tracing to HostResolverImpl. This will help in diagnosing the "slow resolving host" bugs. Users can now click an "Enable tracing" button on "chrome://net-internals/hostresolver". This logs detailed information on the DNS requests flowing through the browser (when they were received, when they were posted to the thread pool, when they started running on the worker thread, etc...). BUG=12754 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=37776

Patch Set 1 #

Patch Set 2 : Add explicit to ctors #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+240 lines, -41 lines) Patch
M chrome/browser/io_thread.cc View 1 2 chunks +7 lines, -3 lines 0 comments Download
M net/base/fixed_host_resolver.h View 1 chunk +0 lines, -1 line 0 comments Download
M net/base/host_resolver.h View 2 chunks +2 lines, -4 lines 3 comments Download
M net/base/host_resolver_impl.h View 5 chunks +23 lines, -1 line 0 comments Download
M net/base/host_resolver_impl.cc View 16 chunks +130 lines, -7 lines 4 comments Download
M net/base/mock_host_resolver.h View 1 chunk +0 lines, -1 line 0 comments Download
M net/base/mock_host_resolver.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M net/proxy/proxy_resolver_js_bindings_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M net/socket/socks_client_socket_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M net/url_request/url_request_view_net_internals_job.cc View 1 20 chunks +78 lines, -18 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
eroman
10 years, 10 months ago (2010-01-30 06:28:30 UTC) #1
willchan no longer on Chromium
Looks good to me, although I raise two questions. I leave it up to you ...
10 years, 10 months ago (2010-02-01 19:31:00 UTC) #2
eroman
Thanks for the review. http://codereview.chromium.org/556094/diff/5001/5004 File net/base/host_resolver.h (right): http://codereview.chromium.org/556094/diff/5001/5004#newcode159 net/base/host_resolver.h:159: virtual bool IsHostResolverImpl() { return ...
10 years, 10 months ago (2010-02-01 20:31:25 UTC) #3
willchan no longer on Chromium
Ok, just wanted to respond to your comments for posterity's sake, but everything still LGTM. ...
10 years, 10 months ago (2010-02-01 21:27:33 UTC) #4
eroman
> I'm not sure I understand why message passing doesn't work > for what you ...
10 years, 10 months ago (2010-02-01 22:43:02 UTC) #5
willchan no longer on Chromium
10 years, 10 months ago (2010-02-01 22:48:46 UTC) #6
On Mon, Feb 1, 2010 at 2:43 PM,  <eroman@chromium.org> wrote:
>> I'm not sure I understand why message passing doesn't work
>> for what you describe here.
>
> Message passing is certainly workable, but more complicated.
>
> Reconstituting the correct order isn't too bad, but properly handling
> cancellation semantics is hairier. Since worker threads (may) outlive the IO
> thread, you need to be careful to test for cancellation using a lock before
> trying to post back to log on IO thread.

Ah, point well taken.  Thanks for the explanation.

>
> http://codereview.chromium.org/556094
>

Powered by Google App Engine
This is Rietveld 408576698