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

Issue 2772283003: Make url_request_context dumps include context names (Closed)

Created:
3 years, 9 months ago by xunjieli
Modified:
3 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, vmpstr+watch_chromium.org, wfh+watch_chromium.org, net-reviews_chromium.org, bnc+watch_chromium.org, tracing+reviews_chromium.org, jkarlin
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make url_request_context dumps include context names Background dumps do not include URLRequestContext's names because string attributes are not allowed. SlowReports only has background dumps. Without the name of the context, we don't know where the contexts come from. This CL includes the context names in the names for the allocator dumps. BUG=705053, 669108 Review-Url: https://codereview.chromium.org/2772283003 Cr-Commit-Position: refs/heads/master@{#460116} Committed: https://chromium.googlesource.com/chromium/src/+/c4da1de6f90c7149e7b2e6db4ee66a84b355988a

Patch Set 1 #

Total comments: 8

Patch Set 2 : address comments #

Patch Set 3 : self #

Patch Set 4 : self #

Patch Set 5 : use %s #

Patch Set 6 : change filtering to avoid name clash #

Total comments: 2

Patch Set 7 : Address comments #

Patch Set 8 : Revert back to an explicit list #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -27 lines) Patch
M base/trace_event/memory_infra_background_whitelist.cc View 1 2 3 5 6 7 1 chunk +46 lines, -4 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_io_data.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl_io_data.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M net/base/sdch_manager_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M net/http/http_cache_unittest.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M net/url_request/url_request_context.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_request_context.cc View 1 2 chunks +6 lines, -9 lines 0 comments Download

Messages

Total messages: 48 (33 generated)
xunjieli
Ssid@ : can I do sth like this?
3 years, 9 months ago (2017-03-27 17:59:18 UTC) #4
ssid
Sure, we can get this kind of context. +primiano for owner. https://codereview.chromium.org/2772283003/diff/1/base/trace_event/memory_infra_background_whitelist.cc File base/trace_event/memory_infra_background_whitelist.cc (right): ...
3 years, 9 months ago (2017-03-27 18:43:15 UTC) #11
xunjieli
Thanks, PTAL. https://codereview.chromium.org/2772283003/diff/1/base/trace_event/memory_infra_background_whitelist.cc File base/trace_event/memory_infra_background_whitelist.cc (right): https://codereview.chromium.org/2772283003/diff/1/base/trace_event/memory_infra_background_whitelist.cc#newcode76 base/trace_event/memory_infra_background_whitelist.cc:76: "net/url_request_context/%s/0x?", On 2017/03/27 18:43:15, ssid wrote: > ...
3 years, 9 months ago (2017-03-27 19:24:55 UTC) #12
ssid
Sorry, lgtm with the previous version of whitelist.cc change. Lets just use the "%s". Thanks! ...
3 years, 9 months ago (2017-03-27 20:15:11 UTC) #15
ssid
https://codereview.chromium.org/2772283003/diff/1/base/trace_event/memory_infra_background_whitelist.cc File base/trace_event/memory_infra_background_whitelist.cc (right): https://codereview.chromium.org/2772283003/diff/1/base/trace_event/memory_infra_background_whitelist.cc#newcode188 base/trace_event/memory_infra_background_whitelist.cc:188: const std::string names[] = {"system", "proxy", "app_request", nit: /s/std::string/const ...
3 years, 9 months ago (2017-03-27 20:26:02 UTC) #16
xunjieli
+mmenke@: PTAL ProfileIOData and friends. Thank you. https://codereview.chromium.org/2772283003/diff/1/base/trace_event/memory_infra_background_whitelist.cc File base/trace_event/memory_infra_background_whitelist.cc (right): https://codereview.chromium.org/2772283003/diff/1/base/trace_event/memory_infra_background_whitelist.cc#newcode76 base/trace_event/memory_infra_background_whitelist.cc:76: "net/url_request_context/%s/0x?", On ...
3 years, 9 months ago (2017-03-27 20:27:15 UTC) #18
mmenke
profiles/ LGTM On 2017/03/27 20:27:15, xunjieli wrote: > +mmenke@: PTAL ProfileIOData and friends. Thank you. ...
3 years, 8 months ago (2017-03-27 21:26:56 UTC) #25
xunjieli
ssid@: PTAL at diff between PS 4 & 5. I changed how the filtering is ...
3 years, 8 months ago (2017-03-27 22:06:11 UTC) #28
ssid
https://codereview.chromium.org/2772283003/diff/100001/base/trace_event/memory_infra_background_whitelist.cc File base/trace_event/memory_infra_background_whitelist.cc (right): https://codereview.chromium.org/2772283003/diff/100001/base/trace_event/memory_infra_background_whitelist.cc#newcode190 base/trace_event/memory_infra_background_whitelist.cc:190: stripped_str.replace(replace_start, replace_end - pos, "%s"); No this is exactly ...
3 years, 8 months ago (2017-03-27 23:02:34 UTC) #29
xunjieli
Thanks, PTAL. https://codereview.chromium.org/2772283003/diff/1/base/trace_event/memory_infra_background_whitelist.cc File base/trace_event/memory_infra_background_whitelist.cc (right): https://codereview.chromium.org/2772283003/diff/1/base/trace_event/memory_infra_background_whitelist.cc#newcode188 base/trace_event/memory_infra_background_whitelist.cc:188: const std::string names[] = {"system", "proxy", "app_request", ...
3 years, 8 months ago (2017-03-28 01:04:56 UTC) #32
Primiano Tucci (use gerrit)
Hmm sorry folks but I have to push back a bit on memory_infra_background_whitelist.cc as it's ...
3 years, 8 months ago (2017-03-28 14:24:34 UTC) #37
xunjieli
On 2017/03/28 14:24:34, Primiano Tucci wrote: > Hmm sorry folks but I have to push ...
3 years, 8 months ago (2017-03-28 14:40:00 UTC) #38
Primiano Tucci (use gerrit)
Thanks a lot, base/trace_event/memory_infra_background_whitelist.cc lgtm
3 years, 8 months ago (2017-03-28 14:51:43 UTC) #41
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/2772283003/140001
3 years, 8 months ago (2017-03-28 15:20:05 UTC) #45
commit-bot: I haz the power
3 years, 8 months ago (2017-03-28 16:20:48 UTC) #48
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/c4da1de6f90c7149e7b2e6db4ee6...

Powered by Google App Engine
This is Rietveld 408576698