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

Issue 2623383005: Log states of JobController in Net MemoryDumpProvider (Closed)

Created:
3 years, 11 months ago by xunjieli
Modified:
3 years, 11 months ago
Reviewers:
ssid, Zhongyi Shi
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Log states of JobController in Net MemoryDumpProvider This CL logs states of JobController in network stack's MemoryDumpProvider. This will allow us to see how many pending Jobs there are at a given time, and whether there's anything out of ordinary. The following information will be reported to MDP. (0) Estimated size of all JobControllers in HttpStreamFactoryImpl::job_controller_set_. (1) How many JobControllers there are. (2) How many preconnect JobControllers there are. (3) How many non-preconnect JobControllers exist because of a pending Alt Job. (4) How many non-preconnect JobControllers exist because of a pending Main Job. [Union of 3 and 4] and [2] are disjoint. Together they sum up to [1]. BUG=669108 Review-Url: https://codereview.chromium.org/2623383005 Cr-Commit-Position: refs/heads/master@{#445165} Committed: https://chromium.googlesource.com/chromium/src/+/f5267debb22eacffc2287fba55832299ef640bbb

Patch Set 1 #

Patch Set 2 : self review #

Total comments: 12

Patch Set 3 : address comments #

Patch Set 4 : self review #

Patch Set 5 : add a pending main job count #

Total comments: 2

Patch Set 6 : Separate out preconnect vs non-preconnect #

Total comments: 8

Patch Set 7 : Address ssid comments #

Patch Set 8 : self review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -0 lines) Patch
M net/http/http_network_session.cc View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M net/http/http_stream_factory.h View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl.cc View 1 2 3 4 5 6 2 chunks +50 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_job.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_job.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_job_controller.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M net/http/http_stream_factory_impl_job_controller.cc View 1 2 3 4 5 6 1 chunk +17 lines, -0 lines 0 comments Download
M net/socket/client_socket_handle.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (20 generated)
xunjieli
Sid and Cherie: PTAL. Something like this will allow us to spot an issue like ...
3 years, 11 months ago (2017-01-13 20:42:06 UTC) #3
Zhongyi Shi
That's a great idea to log the details of the JobController's state. Thanks Helen! I'm ...
3 years, 11 months ago (2017-01-13 21:57:50 UTC) #4
ssid
Why are we logging only the number of jobs. Why are we not dumping the ...
3 years, 11 months ago (2017-01-13 22:23:59 UTC) #5
xunjieli
> Is it hard / takes long to compute the size of the jobs? > ...
3 years, 11 months ago (2017-01-17 17:51:24 UTC) #6
Zhongyi Shi
https://codereview.chromium.org/2623383005/diff/20001/net/http/http_stream_factory_impl.cc File net/http/http_stream_factory_impl.cc (right): https://codereview.chromium.org/2623383005/diff/20001/net/http/http_stream_factory_impl.cc#newcode322 net/http/http_stream_factory_impl.cc:322: alt_job_count++; On 2017/01/17 17:51:24, xunjieli wrote: > On 2017/01/13 ...
3 years, 11 months ago (2017-01-18 04:56:21 UTC) #7
xunjieli
https://codereview.chromium.org/2623383005/diff/20001/net/http/http_stream_factory_impl.cc File net/http/http_stream_factory_impl.cc (right): https://codereview.chromium.org/2623383005/diff/20001/net/http/http_stream_factory_impl.cc#newcode322 net/http/http_stream_factory_impl.cc:322: alt_job_count++; On 2017/01/18 04:56:21, Zhongyi Shi wrote: > On ...
3 years, 11 months ago (2017-01-18 19:49:31 UTC) #8
Zhongyi Shi
https://codereview.chromium.org/2623383005/diff/20001/net/http/http_stream_factory_impl.cc File net/http/http_stream_factory_impl.cc (right): https://codereview.chromium.org/2623383005/diff/20001/net/http/http_stream_factory_impl.cc#newcode322 net/http/http_stream_factory_impl.cc:322: alt_job_count++; On 2017/01/18 19:49:31, xunjieli wrote: > On 2017/01/18 ...
3 years, 11 months ago (2017-01-18 20:17:45 UTC) #9
xunjieli
Thanks! PTAL? https://codereview.chromium.org/2623383005/diff/20001/net/http/http_stream_factory_impl.cc File net/http/http_stream_factory_impl.cc (right): https://codereview.chromium.org/2623383005/diff/20001/net/http/http_stream_factory_impl.cc#newcode322 net/http/http_stream_factory_impl.cc:322: alt_job_count++; On 2017/01/18 20:17:45, Zhongyi Shi wrote: ...
3 years, 11 months ago (2017-01-18 20:25:20 UTC) #11
Zhongyi Shi
net LGTM! Delegate MemoryDumpProvider review to ssid@. Thanks :) https://codereview.chromium.org/2623383005/diff/80001/net/http/http_stream_factory_impl.cc File net/http/http_stream_factory_impl.cc (right): https://codereview.chromium.org/2623383005/diff/80001/net/http/http_stream_factory_impl.cc#newcode323 net/http/http_stream_factory_impl.cc:323: ...
3 years, 11 months ago (2017-01-18 20:39:32 UTC) #12
xunjieli
Done. PTAL? https://codereview.chromium.org/2623383005/diff/80001/net/http/http_stream_factory_impl.cc File net/http/http_stream_factory_impl.cc (right): https://codereview.chromium.org/2623383005/diff/80001/net/http/http_stream_factory_impl.cc#newcode323 net/http/http_stream_factory_impl.cc:323: main_job_count++; On 2017/01/18 20:39:32, Zhongyi Shi wrote: ...
3 years, 11 months ago (2017-01-18 20:56:58 UTC) #15
Zhongyi Shi
lgtm
3 years, 11 months ago (2017-01-18 21:00:10 UTC) #17
ssid
lgtm, with a few questions. On 2017/01/17 17:51:24, xunjieli wrote: > > Is it hard ...
3 years, 11 months ago (2017-01-18 23:51:52 UTC) #18
xunjieli
>The current instrumentation makes sense. I do not understand what you mean by > adding ...
3 years, 11 months ago (2017-01-19 14:50:42 UTC) #19
ssid
Sorry missed this email. still lg. Please update the description of the cl to something ...
3 years, 11 months ago (2017-01-20 20:20:24 UTC) #28
xunjieli
Updated CL description. Thanks!
3 years, 11 months ago (2017-01-20 20:22:34 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2623383005/140001
3 years, 11 months ago (2017-01-20 20:23:08 UTC) #33
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 21:19:38 UTC) #37
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/f5267debb22eacffc2287fba5583...

Powered by Google App Engine
This is Rietveld 408576698